Bug 575700 - Crash when moving a GtkWindow
2009-03-17 Tor Lillqvist <tml@novell.com> Bug 575700 - Crash when moving a GtkWindow * gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix embarrassing crasher bug introduced on 2009-03-11. A variable was assigned a value only inside a GDK_NOTE but still used outside that. svn path=/trunk/; revision=22568
This commit is contained in:
committed by
Tor Lillqvist
parent
25deb501ad
commit
c3879d400c
@@ -1,3 +1,12 @@
|
|||||||
|
2009-03-17 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
Bug 575700 - Crash when moving a GtkWindow
|
||||||
|
|
||||||
|
* gdk/win32/gdkevents-win32.c (gdk_event_translate): Fix
|
||||||
|
embarrassing crasher bug introduced on 2009-03-11. A variable was
|
||||||
|
assigned a value only inside a GDK_NOTE but still used outside
|
||||||
|
that.
|
||||||
|
|
||||||
2009-03-17 Tor Lillqvist <tml@novell.com>
|
2009-03-17 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* gtk/gtkprintoperation-win32.c: Newer mingw-w64 uses an
|
* gtk/gtkprintoperation-win32.c: Newer mingw-w64 uses an
|
||||||
|
|||||||
@@ -3253,16 +3253,16 @@ gdk_event_translate (MSG *msg,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_WINDOWPOSCHANGED:
|
case WM_WINDOWPOSCHANGED:
|
||||||
GDK_NOTE (EVENTS, (windowpos = (WINDOWPOS *) msg->lParam,
|
windowpos = (WINDOWPOS *) msg->lParam;
|
||||||
g_print (" %s %s %dx%d@%+d%+d",
|
GDK_NOTE (EVENTS, g_print (" %s %s %dx%d@%+d%+d",
|
||||||
_gdk_win32_window_pos_bits_to_string (windowpos->flags),
|
_gdk_win32_window_pos_bits_to_string (windowpos->flags),
|
||||||
(windowpos->hwndInsertAfter == HWND_BOTTOM ? "BOTTOM" :
|
(windowpos->hwndInsertAfter == HWND_BOTTOM ? "BOTTOM" :
|
||||||
(windowpos->hwndInsertAfter == HWND_NOTOPMOST ? "NOTOPMOST" :
|
(windowpos->hwndInsertAfter == HWND_NOTOPMOST ? "NOTOPMOST" :
|
||||||
(windowpos->hwndInsertAfter == HWND_TOP ? "TOP" :
|
(windowpos->hwndInsertAfter == HWND_TOP ? "TOP" :
|
||||||
(windowpos->hwndInsertAfter == HWND_TOPMOST ? "TOPMOST" :
|
(windowpos->hwndInsertAfter == HWND_TOPMOST ? "TOPMOST" :
|
||||||
(sprintf (buf, "%p", windowpos->hwndInsertAfter),
|
(sprintf (buf, "%p", windowpos->hwndInsertAfter),
|
||||||
buf))))),
|
buf))))),
|
||||||
windowpos->cx, windowpos->cy, windowpos->x, windowpos->y)));
|
windowpos->cx, windowpos->cy, windowpos->x, windowpos->y));
|
||||||
|
|
||||||
/* If position and size haven't changed, don't do anything */
|
/* If position and size haven't changed, don't do anything */
|
||||||
if (_sizemove_in_progress &&
|
if (_sizemove_in_progress &&
|
||||||
|
|||||||
Reference in New Issue
Block a user