gnome-games r7606 - in branches/gnome-2-22/glchess: . glade src/lib/gtkui
- From: rancell svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7606 - in branches/gnome-2-22/glchess: . glade src/lib/gtkui
- Date: Thu, 10 Apr 2008 02:56:13 +0100 (BST)
Author: rancell
Date: Thu Apr 10 02:56:12 2008
New Revision: 7606
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7606&view=rev
Log:
Disable room 'new' and 'join' buttons when network protocol is busy (Bug #523818)
Modified:
branches/gnome-2-22/glchess/ChangeLog
branches/gnome-2-22/glchess/glade/network_game.glade
branches/gnome-2-22/glchess/src/lib/gtkui/network.py
Modified: branches/gnome-2-22/glchess/glade/network_game.glade
==============================================================================
--- branches/gnome-2-22/glchess/glade/network_game.glade (original)
+++ branches/gnome-2-22/glchess/glade/network_game.glade Thu Apr 10 02:56:12 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: branches/gnome-2-22/glchess/src/lib/gtkui/network.py
==============================================================================
--- branches/gnome-2-22/glchess/src/lib/gtkui/network.py (original)
+++ branches/gnome-2-22/glchess/src/lib/gtkui/network.py Thu Apr 10 02:56:12 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]