gtk+ r20810 - in branches/gtk-2-12: . gdk/win32



Author: bratsche
Date: Mon Jul  7 22:28:08 2008
New Revision: 20810
URL: http://svn.gnome.org/viewvc/gtk+?rev=20810&view=rev

Log:
2008-07-07  Cody Russell  <bratsche gnome org>

        Merged from trunk:

        Bug 541964 â [Win32] Setting modal hint to current value might confuse the stack

        * gdk/win32/gdkwindow-win32.c: Check if the value is the same as the
        existing modal hint value before setting it.



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gdk/win32/gdkwindow-win32.c

Modified: branches/gtk-2-12/gdk/win32/gdkwindow-win32.c
==============================================================================
--- branches/gtk-2-12/gdk/win32/gdkwindow-win32.c	(original)
+++ branches/gtk-2-12/gdk/win32/gdkwindow-win32.c	Mon Jul  7 22:28:08 2008
@@ -3566,6 +3566,9 @@
 
   private = (GdkWindowObject*) window;
 
+  if (modal == private->modal_hint)
+    return;
+
   private->modal_hint = modal;
 
 #if 0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]