gnome-games r7607 - in trunk/glchess: . glade src/lib/gtkui



Author: rancell
Date: Thu Apr 10 02:56:41 2008
New Revision: 7607
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7607&view=rev

Log:
Disable room 'new' and 'join' buttons when network protocol is busy (Bug #523818)


Modified:
   trunk/glchess/ChangeLog
   trunk/glchess/glade/network_game.glade
   trunk/glchess/src/lib/gtkui/network.py

Modified: trunk/glchess/glade/network_game.glade
==============================================================================
--- trunk/glchess/glade/network_game.glade	(original)
+++ trunk/glchess/glade/network_game.glade	Thu Apr 10 02:56:41 2008
@@ -366,7 +366,7 @@
 			  </child>
 
 			  <child>
-			    <widget class="GtkHButtonBox" id="hbuttonbox1">
+			    <widget class="GtkHButtonBox" id="room_button_box">
 			      <property name="visible">True</property>
 			      <property name="layout_style">GTK_BUTTONBOX_END</property>
 			      <property name="spacing">0</property>
@@ -391,8 +391,7 @@
 				  <property name="can_default">True</property>
 				  <property name="can_focus">True</property>
 				  <property name="label">gtk-new</property>
- 				  <property name="use_stock">True</property>
-				  <property name="use_underline">True</property>
+				  <property name="use_stock">True</property>
 				  <property name="relief">GTK_RELIEF_NORMAL</property>
 				  <property name="focus_on_click">True</property>
 				  <signal name="clicked" handler="_on_table_new_button_clicked" last_modification_time="Mon, 07 May 2007 07:57:07 GMT"/>

Modified: trunk/glchess/src/lib/gtkui/network.py
==============================================================================
--- trunk/glchess/src/lib/gtkui/network.py	(original)
+++ trunk/glchess/src/lib/gtkui/network.py	Thu Apr 10 02:56:41 2008
@@ -157,6 +157,10 @@
         if self._throbberTimer is not None:
             gobject.source_remove(self._throbberTimer)
             self._throbberTimer = None
+
+        # Disable room buttons when busy
+        widget = self.__gui.get_widget('room_button_box')
+        widget.set_sensitive(not isBusy)
         
         # Display animating frames if busy or idle frame if not
         if isBusy:



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