+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
+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
+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
+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
+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
+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
+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
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:
{
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));
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);