gnome-games r9013 - trunk/gnome-sudoku/src/lib



Author: thomashpa
Date: Wed Apr  8 11:04:57 2009
New Revision: 9013
URL: http://svn.gnome.org/viewvc/gnome-games?rev=9013&view=rev

Log:
Hide window before UI glitch on close is shown. Fixes bug #574126

Modified:
   trunk/gnome-sudoku/src/lib/main.py

Modified: trunk/gnome-sudoku/src/lib/main.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/main.py	(original)
+++ trunk/gnome-sudoku/src/lib/main.py	Wed Apr  8 11:04:57 2009
@@ -505,6 +505,7 @@
 
     @simple_debug
     def quit_cb (self, *args):
+        self.w.hide()
         if (self.gsd.grid
             and self.gsd.grid.is_changed()
             and (not self.won)):
@@ -522,7 +523,6 @@
                                                # to quit the main
                                                # mainloop
             return
-        self.w.hide()
         # make sure we really go away before doing our saving --
         # otherwise we appear sluggish.
         while gtk.events_pending():



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