[gnome-chess] Remove the gear menu



commit 29556c95d50e4bae21a6ff94de2470f355dbe0ea
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Apr 7 18:56:16 2014 -0500

    Remove the gear menu
    
    https://bugzilla.gnome.org/show_bug.cgi?id=727345

 data/gnome-chess.ui  |   19 -------------------
 data/menu.ui         |   14 --------------
 src/gnome-chess.vala |    5 -----
 3 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/data/gnome-chess.ui b/data/gnome-chess.ui
index 7762cac..5d28d7c 100644
--- a/data/gnome-chess.ui
+++ b/data/gnome-chess.ui
@@ -67,25 +67,6 @@
           </object>
         </child>
         <child>
-          <object class="GtkMenuButton" id="gear_button">
-            <property name="visible">True</property>
-            <property name="valign">center</property>
-            <style>
-              <class name="image-button"/>
-            </style>
-            <child>
-              <object class="GtkImage" id="gear_image">
-                <property name="visible">True</property>
-                <property name="icon_size">1</property>
-                <property name="icon_name">emblem-system-symbolic</property>
-              </object>
-            </child>
-          </object>
-          <packing>
-            <property name="pack_type">end</property>
-          </packing>
-        </child>
-        <child>
           <object class="GtkButton" id="save_game_button">
             <property name="visible">True</property>
             <property name="valign">center</property>
diff --git a/data/menu.ui b/data/menu.ui
index 66a8659..4bc1f5b 100644
--- a/data/menu.ui
+++ b/data/menu.ui
@@ -25,18 +25,4 @@
       </item>
     </section>
   </menu>
-  <menu id="windowmenu">
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">Save As…</attribute>
-        <attribute name="action">win.save-as</attribute>
-      </item>
-    </section>
-    <section>
-      <item>
-        <attribute name="label" translatable="yes">Resign</attribute>
-        <attribute name="action">win.resign</attribute>
-      </item>
-    </section>
-  </menu>
 </interface>
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index e7ae075..9da5415 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -20,7 +20,6 @@ public class Application : Gtk.Application
     private ChessScene scene;
     private ChessView view;
     private Gtk.Button pause_resume_button;
-    private Gtk.MenuButton menu_button;
     private Gtk.Widget first_move_button;
     private Gtk.Widget prev_move_button;
     private Gtk.Widget next_move_button;
@@ -117,8 +116,6 @@ public class Application : Gtk.Application
         var app_menu = (Menu) builder.get_object ("appmenu");
         set_app_menu (app_menu);
 
-        var window_menu = (Menu) builder.get_object ("windowmenu");
-
         try
         {
             builder.add_from_file (Path.build_filename (PKGDATADIR, "gnome-chess.ui", null));
@@ -130,7 +127,6 @@ public class Application : Gtk.Application
         window = (Gtk.ApplicationWindow) builder.get_object ("gnome_chess_app");
         var undo_move_image = (Gtk.Image) builder.get_object ("undo_move_image");
         pause_resume_button = (Gtk.Button) builder.get_object ("pause_button");
-        menu_button = (Gtk.MenuButton) builder.get_object ("gear_button");
         first_move_button = (Gtk.Widget) builder.get_object ("first_move_button");
         prev_move_button = (Gtk.Widget) builder.get_object ("prev_move_button");
         next_move_button = (Gtk.Widget) builder.get_object ("next_move_button");
@@ -157,7 +153,6 @@ public class Application : Gtk.Application
         undo_move_image.icon_name = rtl ? "edit-undo-rtl-symbolic" : "edit-undo-symbolic";
 
         window.add_action_entries (window_entries, this);
-        menu_button.set_menu_model (window_menu);
 
         add_window (window);
 


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