gnome-games r7969 - branches/gnome-2-24/glchess/src/lib/gtkui



Author: rancell
Date: Wed Oct  8 08:03:25 2008
New Revision: 7969
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7969&view=rev

Log:
Only allow one new/load game dialog to be visible at once. (Bug #546702)

Modified:
   branches/gnome-2-24/glchess/src/lib/gtkui/dialogs.py

Modified: branches/gnome-2-24/glchess/src/lib/gtkui/dialogs.py
==============================================================================
--- branches/gnome-2-24/glchess/src/lib/gtkui/dialogs.py	(original)
+++ branches/gnome-2-24/glchess/src/lib/gtkui/dialogs.py	Wed Oct  8 08:03:25 2008
@@ -250,7 +250,7 @@
         self.window.present()
         self.__checking = False
         self.__testReady()
-        
+
     # Private methods
     
     def __setCombo(self, comboName, key):
@@ -384,6 +384,8 @@
         if responseId == gtk.RESPONSE_OK:
             self.__startGame()
         dialog.destroy()
+        if self.__mainUI.newGameDialog is self:
+            self.__mainUI.newGameDialog = None
 
 class GtkLoadGameDialog:
     """
@@ -452,6 +454,8 @@
                 return
 
         dialog.destroy()
+        if self.__mainUI.loadGameDialog is self:
+            self.__mainUI.loadGameDialog = None
         
 class GtkSaveGameDialog:
     """



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