]> Pileus Git - ~andy/gtk/commitdiff
The correct semantics (to mimic the X11 backend, which just calls
authorTor Lillqvist <tml@iki.fi>
Tue, 18 Jan 2000 22:03:59 +0000 (22:03 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 18 Jan 2000 22:03:59 +0000 (22:03 +0000)
2000-01-19  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
semantics (to mimic the X11 backend, which just calls XClearArea)
is to check for zero width (and height), and in that case use the
window's width minus x (height minus y). This fixes for instance
some redraw problems with gtkclist, which were easily noticeable
in the gtk file selection widget.

(gdk_window_new): Don't set WS_EX_TOPMOST for dialog
windows.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkwindow-win32.c

index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index 2612854a3aabc052933de6c80f9755dd2908454a..f0a46a7b8b14a715e3b61680c651cd8e356e7553 100644 (file)
@@ -1,3 +1,15 @@
+2000-01-19  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkwindow-win32.c (gdk_window_clear_area): The correct
+       semantics (to mimic the X11 backend, which just calls XClearArea)
+       is to check for zero width (and height), and in that case use the
+       window's width minus x (height minus y). This fixes for instance
+       some redraw problems with gtkclist, which were easily noticeable
+       in the gtk file selection widget.
+
+       (gdk_window_new): Don't set WS_EX_TOPMOST for dialog
+       windows.
+
 2000-01-13  Tor Lillqvist  <tml@iki.fi>
 
        * configure.in
index f77b98cf8852637e9a13b61b73c29a8b52565db9..fb6dd461a42d2a30e292a0fe608a6b1746013ac2 100644 (file)
@@ -364,7 +364,9 @@ gdk_window_new (GdkWindow     *parent,
       break;
     case GDK_WINDOW_DIALOG:
       dwStyle = WS_OVERLAPPED | WS_MINIMIZEBOX | WS_SYSMENU | WS_CAPTION | WS_THICKFRAME | WS_CLIPCHILDREN;
+#if 0
       dwExStyle |= WS_EX_TOPMOST; /* //HB: want this? */
+#endif
       xparent = gdk_root_window;
       break;
     case GDK_WINDOW_TEMP:
@@ -1019,10 +1021,10 @@ gdk_window_clear_area (GdkWindow *window,
     {
       HDC hdc;
 
-      if (width == -1)
-       width = G_MAXSHORT/2;           /* Yeah, right */
-      if (height == -1)
-       height = G_MAXSHORT/2;
+      if (width == 0)
+       width = ((GdkDrawablePrivate *) window)->width - x;
+      if (height == 0)
+       height = ((GdkDrawablePrivate *) window)->height - y;
       GDK_NOTE (MISC, g_print ("gdk_window_clear_area: %#x %dx%d@+%d+%d\n",
                               GDK_DRAWABLE_XID (window), width, height, x, y));
       hdc = GetDC (GDK_DRAWABLE_XID (window));
@@ -1341,7 +1343,7 @@ gdk_window_set_title (GdkWindow   *window,
                           GDK_DRAWABLE_XID (window), title));
   if (!GDK_DRAWABLE_DESTROYED (window))
     {
-      /* As the title most is in UTF-8 we must translate it
+      /* As the title is in UTF-8 we must translate it
        * to the system codepage.
        */
       titlelen = strlen (title);