[gnome-games] Make toolbar text visible



commit 634ccbf74966153b920f37558c2ea1524e466bcb
Author: Robert Ancell <robert ancell gmail com>
Date:   Wed Mar 31 14:56:50 2010 +1100

    Make toolbar text visible

 glchess/data/glchess.ui        |   29 ++++-------------------------
 glchess/src/lib/gtkui/gtkui.py |    2 +-
 2 files changed, 5 insertions(+), 26 deletions(-)
---
diff --git a/glchess/data/glchess.ui b/glchess/data/glchess.ui
index 9fd42fc..9e7eeb4 100644
--- a/glchess/data/glchess.ui
+++ b/glchess/data/glchess.ui
@@ -254,6 +254,7 @@
               <object class="GtkToolButton" id="new_game_button">
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Start a new game</property>
+                <property name="is_important">True</property>
                 <property name="label" translatable="yes" comments="The New Game toolbar button">New Game</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-new</property>
@@ -269,6 +270,7 @@
                 <property name="visible">True</property>
                 <property name="tooltip_text" translatable="yes">Start a new multiplayer network game</property>
                 <property name="visible_vertical">False</property>
+                <property name="is_important">True</property>
                 <property name="label" translatable="yes" comments="The Network Game toolbar button">Network _Game</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-network</property>
@@ -280,33 +282,9 @@
               </packing>
             </child>
             <child>
-              <object class="GtkToolButton" id="toolbutton1">
-                <property name="visible">True</property>
-                <property name="tooltip_text" translatable="yes">Load a saved game</property>
-                <property name="stock_id">gtk-open</property>
-                <signal name="clicked" handler="_on_open_game_button_clicked"/>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="homogeneous">True</property>
-              </packing>
-            </child>
-            <child>
-              <object class="GtkToolButton" id="save_game_button">
-                <property name="visible">True</property>
-                <property name="sensitive">False</property>
-                <property name="tooltip_text" translatable="yes">Save the current game</property>
-                <property name="stock_id">gtk-save</property>
-                <signal name="clicked" handler="_on_save_game_button_clicked"/>
-              </object>
-              <packing>
-                <property name="expand">False</property>
-                <property name="homogeneous">True</property>
-              </packing>
-            </child>
-            <child>
               <object class="GtkToolButton" id="undo_move_button">
                 <property name="visible">True</property>
+                <property name="is_important">True</property>
                 <property name="label" translatable="yes">Undo Move</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-undo</property>
@@ -320,6 +298,7 @@
             <child>
               <object class="GtkToolButton" id="resign_button">
                 <property name="visible">True</property>
+                <property name="is_important">True</property>
                 <property name="label" translatable="yes" comments="The tooltip for the Resign toolbar button">Resign</property>
                 <property name="use_underline">True</property>
                 <property name="stock_id">gtk-dialog-warning</property>
diff --git a/glchess/src/lib/gtkui/gtkui.py b/glchess/src/lib/gtkui/gtkui.py
index 790a484..c57697f 100644
--- a/glchess/src/lib/gtkui/gtkui.py
+++ b/glchess/src/lib/gtkui/gtkui.py
@@ -728,7 +728,7 @@ Please contact your system administrator to resolve these problems, until then y
         """
         """
         enable = self.view is not None and self.view.isPlayable
-        for widget in ('save_game_button', 'menu_save_item', 'menu_save_as_item'):
+        for widget in ('menu_save_item', 'menu_save_as_item'):
             self.__getWidget(widget).set_sensitive(enable)
 
         combo = self.__getWidget('history_combo')



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