[gnome-games] Added decorative frame to game selection areas



commit 2c1b16e2519ce4384c91c5ade1084c0db365ed66
Author: Jim Ross <jimbo dimensia com>
Date:   Wed Apr 21 10:50:02 2010 +1000

    Added decorative frame to game selection areas

 gnome-sudoku/data/select_game.ui      |   30 ++++++++++++++++++++----------
 gnome-sudoku/src/lib/game_selector.py |    5 +++++
 2 files changed, 25 insertions(+), 10 deletions(-)
---
diff --git a/gnome-sudoku/data/select_game.ui b/gnome-sudoku/data/select_game.ui
index 8b6a5f4..69f1182 100644
--- a/gnome-sudoku/data/select_game.ui
+++ b/gnome-sudoku/data/select_game.ui
@@ -51,11 +51,16 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkIconView" id="newGameIconView">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                        <property name="selection_mode">none</property>
+                      <object class="GtkFrame" id="newGameFrame">
+                        <property name="shadow-type">GTK_SHADOW_IN</property>
+                        <child>
+                          <object class="GtkIconView" id="newGameIconView">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                            <property name="selection_mode">none</property>
+                          </object>
+                        </child>
                       </object>
                       <packing>
                         <property name="padding">12</property>
@@ -82,11 +87,16 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkIconView" id="savedGameIconView">
-                        <property name="visible">True</property>
-                        <property name="can_focus">True</property>
-                        <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-                        <property name="selection_mode">none</property>
+                      <object class="GtkFrame" id="savedGameFrame">
+                        <property name="shadow-type">GTK_SHADOW_IN</property>
+                        <child>
+                          <object class="GtkIconView" id="savedGameIconView">
+                            <property name="visible">True</property>
+                            <property name="can_focus">True</property>
+                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+                            <property name="selection_mode">none</property>
+                          </object>
+                        </child>
                       </object>
                       <packing>
                         <property name="position">3</property>
diff --git a/gnome-sudoku/src/lib/game_selector.py b/gnome-sudoku/src/lib/game_selector.py
index 6e86637..ce461be 100644
--- a/gnome-sudoku/src/lib/game_selector.py
+++ b/gnome-sudoku/src/lib/game_selector.py
@@ -68,14 +68,18 @@ class NewOrSavedGameSelector:
         self.dialog.set_default_response(gtk.RESPONSE_CANCEL)
         self.dialog.connect('close', self.close)
         self.dialog.hide()
+        saved_game_frame = builder.get_object('savedGameFrame')
         saved_game_view = builder.get_object('savedGameIconView')
         saved_game_widgets = [
+            saved_game_frame,
             saved_game_view,
             builder.get_object('savedGameLabel')
             ]
         builder.get_object('savedGameLabel').set_mnemonic_widget(
             saved_game_view
             )
+        new_game_frame = builder.get_object('newGameFrame')
+        new_game_frame.show()
         new_game_view = builder.get_object('newGameIconView')
         builder.get_object('newGameLabel').set_mnemonic_widget(
             new_game_view
@@ -90,6 +94,7 @@ class NewOrSavedGameSelector:
             for w in saved_game_widgets:
                 w.hide()
         else:
+            saved_game_frame.show()
             self.saved_game_model.set_sort_column_id(2, gtk.SORT_DESCENDING)
             saved_game_view.set_model(self.saved_game_model)
             saved_game_view.set_markup_column(0)



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