The correct semantics (to mimic the X11 backend, which just calls

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.
This commit is contained in:
Tor Lillqvist 2000-01-18 22:03:59 +00:00 committed by Tor Lillqvist
parent b3a94afdd1
commit cf51b4790e
8 changed files with 91 additions and 5 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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);