[frogr] Added menu items to load / save the session. No actual code yet.



commit d4a150bea844ac5fcfafac1dc4ec083724f22e29
Author: Mario Sanchez Prada <msanchez2 gnome org>
Date:   Thu Nov 8 13:25:05 2012 +0100

    Added menu items to load / save the session. No actual code yet.

 data/gtkbuilder/frogr-main-view.xml |   49 +++++++++++++++++++++++++++++++++++
 src/frogr-main-view.c               |    1 +
 2 files changed, 50 insertions(+), 0 deletions(-)
---
diff --git a/data/gtkbuilder/frogr-main-view.xml b/data/gtkbuilder/frogr-main-view.xml
index 6e8d19a..1e49786 100644
--- a/data/gtkbuilder/frogr-main-view.xml
+++ b/data/gtkbuilder/frogr-main-view.xml
@@ -6,6 +6,21 @@
     <property name="stock_id">gtk-about</property>
     <signal name="activate" handler="_on_action_activated" swapped="no"/>
   </object>
+  <object class="GtkAction" id="load_session_action">
+    <property name="label" translatable="yes">_Load Sessionâ</property>
+    <property name="stock_id">gtk-open</property>
+    <signal name="activate" handler="_on_action_activated" swapped="no"/>
+  </object>
+  <object class="GtkAction" id="save_session_action">
+    <property name="label" translatable="yes">_Save Session</property>
+    <property name="stock_id">gtk-save</property>
+    <signal name="activate" handler="_on_action_activated" swapped="no"/>
+  </object>
+  <object class="GtkAction" id="save_session_as_action">
+    <property name="label" translatable="yes">_Save Session Asâ</property>
+    <property name="stock_id">gtk-save-as</property>
+    <signal name="activate" handler="_on_action_activated" swapped="no"/>
+  </object>
   <object class="GtkAction" id="load_pictures_action">
     <property name="label" translatable="yes">_Load Picturesâ</property>
     <property name="stock_id">gtk-add</property>
@@ -292,6 +307,40 @@
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <child>
+              <object class="GtkImageMenuItem" id="load_session_menu_item">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="related_action">load_session_action</property>
+                <property name="use_underline">True</property>
+                <property name="use_stock">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkImageMenuItem" id="save_session_menu_item">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="related_action">save_session_action</property>
+                <property name="use_underline">True</property>
+                <property name="use_stock">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkImageMenuItem" id="save_session_as_menu_item">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="related_action">save_session_as_action</property>
+                <property name="use_underline">True</property>
+                <property name="use_stock">True</property>
+              </object>
+            </child>
+            <child>
+              <object class="GtkSeparatorMenuItem" id="separator9">
+                <property name="visible">True</property>
+                <property name="can_focus">False</property>
+                <property name="use_action_appearance">False</property>
+              </object>
+            </child>
+            <child>
               <object class="GtkMenuItem" id="authorize_menu_item">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 374580a..31283cb 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -505,6 +505,7 @@ _on_action_activated (GtkAction *action, gpointer data)
     frogr_controller_quit_app (priv->controller);
 #endif
 
+  /* TODO: Load / Save / Save As (Session) */
 }
 
 void



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