don't reduce the scroll rect size by the scroll amount
2002-02-10 Hans Breuer <hans@breuer.org> * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll rect size by the scroll amount * gdk/win32/gdkwindow-win32.c * gdk/win32/gdkselection-win32.c : added some casts to make it compile with msvc's strict type checking * gtk/fnmatch.c : #include <ctype.h> again for tolower prototype. The fnmatch() code assumes to be in the crt locale though it is feeded by utf8 strings from gtkfilesel.c * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by _CompletionDir instead of referencing already freed memory * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to gtk_rc_parse_string (theDefaultTooltipColor) once as it was intended * tests/makefile.msc : added more tests * tests/testgtk.c (create_list) : don't try to load gtkenums.h from the current directory use ../gtk/gtkenums.h instead
This commit is contained in:
parent
f42f2a646e
commit
6d33d1c7e3
25
ChangeLog
25
ChangeLog
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -1,3 +1,28 @@
|
|||||||
|
2002-02-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/win32/gdkgeometry-win32.c : don't reduce the scroll
|
||||||
|
rect size by the scroll amount
|
||||||
|
|
||||||
|
* gdk/win32/gdkwindow-win32.c
|
||||||
|
* gdk/win32/gdkselection-win32.c : added some casts to
|
||||||
|
make it compile with msvc's strict type checking
|
||||||
|
|
||||||
|
* gtk/fnmatch.c : #include <ctype.h> again for tolower
|
||||||
|
prototype. The fnmatch() code assumes to be in the crt
|
||||||
|
locale though it is feeded by utf8 strings from gtkfilesel.c
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by
|
||||||
|
_CompletionDir instead of referencing already freed memory
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to
|
||||||
|
gtk_rc_parse_string (theDefaultTooltipColor) once as it
|
||||||
|
was intended
|
||||||
|
|
||||||
|
* tests/makefile.msc : added more tests
|
||||||
|
|
||||||
|
* tests/testgtk.c (create_list) : don't try to load gtkenums.h
|
||||||
|
from the current directory use ../gtk/gtkenums.h instead
|
||||||
|
|
||||||
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
2002-02-10 Kjartan Maraas <kmaraas@gnome.org>
|
||||||
|
|
||||||
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
* gtk/gtksizegroup.c: Fix a double «The» typo in a string.
|
||||||
|
@ -127,8 +127,8 @@ gdk_window_copy_area_scroll (GdkWindow *window,
|
|||||||
if (dest_rect->width > 0 && dest_rect->height > 0)
|
if (dest_rect->width > 0 && dest_rect->height > 0)
|
||||||
{
|
{
|
||||||
RECT clipRect;
|
RECT clipRect;
|
||||||
clipRect.left = dest_rect->x - dx;
|
clipRect.left = dest_rect->x;
|
||||||
clipRect.top = dest_rect->y - dy;
|
clipRect.top = dest_rect->y;
|
||||||
clipRect.right = clipRect.left + dest_rect->width;
|
clipRect.right = clipRect.left + dest_rect->width;
|
||||||
clipRect.bottom = clipRect.top + dest_rect->height;
|
clipRect.bottom = clipRect.top + dest_rect->height;
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ gdk_window_copy_area_scroll (GdkWindow *window,
|
|||||||
if (!ScrollWindowEx (GDK_WINDOW_HWND (window),
|
if (!ScrollWindowEx (GDK_WINDOW_HWND (window),
|
||||||
dx, dy, /* in: scroll offsets */
|
dx, dy, /* in: scroll offsets */
|
||||||
NULL, /* in: scroll rect, NULL == entire client area */
|
NULL, /* in: scroll rect, NULL == entire client area */
|
||||||
&clipRect, /* in: restrict to, XXX: really want this ?? */
|
&clipRect, /* in: restrict to */
|
||||||
NULL, /* out: update region */
|
NULL, /* out: update region */
|
||||||
NULL, /* out: update rect */
|
NULL, /* out: update rect */
|
||||||
SW_INVALIDATE))
|
SW_INVALIDATE))
|
||||||
|
@ -203,7 +203,7 @@ gdk_selection_owner_get (GdkAtom selection)
|
|||||||
if (selection == GDK_SELECTION_CLIPBOARD)
|
if (selection == GDK_SELECTION_CLIPBOARD)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
window = gdk_window_lookup (g_hash_table_lookup (sel_owner_table, selection));
|
window = gdk_window_lookup ((GdkNativeWindow) g_hash_table_lookup (sel_owner_table, selection));
|
||||||
|
|
||||||
GDK_NOTE (DND,
|
GDK_NOTE (DND,
|
||||||
(sel_name = gdk_atom_name (selection),
|
(sel_name = gdk_atom_name (selection),
|
||||||
@ -279,7 +279,7 @@ gdk_selection_convert (GdkWindow *requestor,
|
|||||||
GdkAtom *data = g_new (GdkAtom, 1);
|
GdkAtom *data = g_new (GdkAtom, 1);
|
||||||
*data = GDK_TARGET_STRING;
|
*data = GDK_TARGET_STRING;
|
||||||
_gdk_selection_property_store (requestor, GDK_SELECTION_TYPE_ATOM,
|
_gdk_selection_property_store (requestor, GDK_SELECTION_TYPE_ATOM,
|
||||||
32, data, 1 * sizeof (GdkAtom));
|
32, (guchar *) data, 1 * sizeof (GdkAtom));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
property = GDK_NONE;
|
property = GDK_NONE;
|
||||||
@ -566,7 +566,7 @@ gdk_text_property_to_text_list (GdkAtom encoding,
|
|||||||
if (!list)
|
if (!list)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
*list = g_new (gchar **, 1);
|
*list = g_new (gchar *, 1);
|
||||||
**list = g_strdup (text);
|
**list = g_strdup (text);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -1881,7 +1881,7 @@ _gdk_windowing_window_get_pointer (GdkWindow *window,
|
|||||||
hwnd = hwndc;
|
hwnd = hwndc;
|
||||||
}
|
}
|
||||||
|
|
||||||
return_val = gdk_window_lookup (hwnd);
|
return_val = gdk_window_lookup ((GdkNativeWindow) hwnd);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return_val = NULL;
|
return_val = NULL;
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <ctype.h> /* tolower */
|
||||||
|
|
||||||
/* Added for GTK. We need to make sure that all constants are defined
|
/* Added for GTK. We need to make sure that all constants are defined
|
||||||
* to properly compile this file */
|
* to properly compile this file */
|
||||||
|
@ -2308,6 +2308,7 @@ cmpl_free_state (CompletionState* cmpl_state)
|
|||||||
static void
|
static void
|
||||||
free_dir (CompletionDir* dir)
|
free_dir (CompletionDir* dir)
|
||||||
{
|
{
|
||||||
|
g_free (dir->cmpl_text);
|
||||||
g_free (dir->fullname);
|
g_free (dir->fullname);
|
||||||
g_free (dir);
|
g_free (dir);
|
||||||
}
|
}
|
||||||
@ -2407,7 +2408,7 @@ cmpl_completion_matches (gchar *text_to_complete,
|
|||||||
|
|
||||||
cmpl_state->completion_dir->cmpl_index = -1;
|
cmpl_state->completion_dir->cmpl_index = -1;
|
||||||
cmpl_state->completion_dir->cmpl_parent = NULL;
|
cmpl_state->completion_dir->cmpl_parent = NULL;
|
||||||
cmpl_state->completion_dir->cmpl_text = *remaining_text;
|
cmpl_state->completion_dir->cmpl_text = g_strdup (*remaining_text);
|
||||||
|
|
||||||
cmpl_state->active_completion_dir = cmpl_state->completion_dir;
|
cmpl_state->active_completion_dir = cmpl_state->completion_dir;
|
||||||
|
|
||||||
@ -2856,6 +2857,7 @@ attach_dir (CompletionDirSent *sent,
|
|||||||
new_dir->sent = sent;
|
new_dir->sent = sent;
|
||||||
new_dir->fullname = g_strdup (dir_name);
|
new_dir->fullname = g_strdup (dir_name);
|
||||||
new_dir->fullname_len = strlen (dir_name);
|
new_dir->fullname_len = strlen (dir_name);
|
||||||
|
new_dir->cmpl_text = NULL;
|
||||||
|
|
||||||
return new_dir;
|
return new_dir;
|
||||||
}
|
}
|
||||||
@ -3399,7 +3401,7 @@ attempt_file_completion (CompletionState *cmpl_state)
|
|||||||
new_dir->cmpl_parent = dir;
|
new_dir->cmpl_parent = dir;
|
||||||
|
|
||||||
new_dir->cmpl_index = -1;
|
new_dir->cmpl_index = -1;
|
||||||
new_dir->cmpl_text = first_slash + 1;
|
new_dir->cmpl_text = g_strdup (first_slash + 1);
|
||||||
|
|
||||||
cmpl_state->active_completion_dir = new_dir;
|
cmpl_state->active_completion_dir = new_dir;
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ static void
|
|||||||
gtk_tooltips_init (GtkTooltips *tooltips)
|
gtk_tooltips_init (GtkTooltips *tooltips)
|
||||||
{
|
{
|
||||||
static gboolean have_rc = FALSE;
|
static gboolean have_rc = FALSE;
|
||||||
if (have_rc)
|
if (!have_rc)
|
||||||
{
|
{
|
||||||
have_rc = TRUE;
|
have_rc = TRUE;
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ all : \
|
|||||||
#
|
#
|
||||||
TESTAPPS = testcalendar testdnd testgtk testinput testrgb testselection \
|
TESTAPPS = testcalendar testdnd testgtk testinput testrgb testselection \
|
||||||
testtext testtextbuffer testsocket testsocket_child \
|
testtext testtextbuffer testsocket testsocket_child \
|
||||||
|
testtreeedit testtreeflow \
|
||||||
testtreecolumns testtreefocus testtreesort testtreeview treestoretest \
|
testtreecolumns testtreefocus testtreesort testtreeview treestoretest \
|
||||||
testthreads simple
|
testthreads simple
|
||||||
|
|
||||||
|
@ -4774,7 +4774,7 @@ create_list (void)
|
|||||||
gtk_scrolled_window_get_hadjustment
|
gtk_scrolled_window_get_hadjustment
|
||||||
(GTK_SCROLLED_WINDOW (scrolled_win)));
|
(GTK_SCROLLED_WINDOW (scrolled_win)));
|
||||||
|
|
||||||
if ((infile = fopen("gtkenums.h", "r")))
|
if ((infile = fopen("../gtk/gtkenums.h", "r")))
|
||||||
{
|
{
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
char *pos;
|
char *pos;
|
||||||
|
Loading…
Reference in New Issue
Block a user