summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2002-02-18 22:56:57 +0000
committerHans Breuer <hans@src.gnome.org>2002-02-18 22:56:57 +0000
commit911700a37ec8ec3dd8fe94f883a32f4329624de0 (patch)
treeb85ef9bed13819037589f7d16409f38108e2f4cf /gdk
parent7ea9e8046f31adc03be2355adb32e0d9450e697d (diff)
downloadgtk+-911700a37ec8ec3dd8fe94f883a32f4329624de0.tar.gz
process WM_PAINT messages for bg_pixmap == GDK_NO_BG, fixes The GIMP's
2002-02-18 Hans Breuer <hans@breuer.org> * gdk/win32/gdkevents-win32.c : process WM_PAINT messages for bg_pixmap == GDK_NO_BG, fixes The GIMP's canvas rendering glitches on win32 * gdk/win32/gdkinput-win32.c : use g_object_new to create GdkDevice instead of g_new * gtk/gtkpaned.c : make LAST_SIGNAL the last in enum. This avoids to smash totally unrelated static data and resulting random crashes. (as reported on gtk-devel-list, 2002-02-10 : testgtk crashes) * gtk/gtk.def : add new file selection entry points
Diffstat (limited to 'gdk')
-rw-r--r--gdk/win32/gdkevents-win32.c4
-rw-r--r--gdk/win32/gdkinput-win32.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 47df43ff02..722deca48d 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -2822,8 +2822,12 @@ gdk_event_translate (GdkEvent *event,
if (!(window_impl->event_mask & GDK_EXPOSURE_MASK))
break;
+#if 0 /* we need to process exposes even with GDK_NO_BG
+ * Otherwise The GIMP canvas update is broken ....
+ */
if (GDK_WINDOW_OBJECT (window)->bg_pixmap == GDK_NO_BG)
break;
+#endif
if ((paintstruct.rcPaint.right == paintstruct.rcPaint.left)
|| (paintstruct.rcPaint.bottom == paintstruct.rcPaint.top))
diff --git a/gdk/win32/gdkinput-win32.c b/gdk/win32/gdkinput-win32.c
index 0e065d5929..736518ee21 100644
--- a/gdk/win32/gdkinput-win32.c
+++ b/gdk/win32/gdkinput-win32.c
@@ -352,7 +352,7 @@ gdk_input_wintab_init (void)
WTInfo (WTI_CURSORS + cursorix, CSR_ACTIVE, &active);
if (!active)
continue;
- gdkdev = g_new (GdkDevicePrivate, 1);
+ gdkdev = g_object_new (GDK_TYPE_DEVICE, NULL);
WTInfo (WTI_CURSORS + cursorix, CSR_NAME, csrname);
gdkdev->info.name = g_strconcat (devname, " ", csrname, NULL);
gdkdev->info.source = GDK_SOURCE_PEN;