[gitg] Added back the close menu item



commit 423169dabd8037b50f75f93664e8eb8211564b46
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Thu Jul 10 11:06:37 2014 +0200

    Added back the close menu item

 gitg/gitg-application.vala      |    3 ++-
 gitg/resources/ui/gitg-menus.ui |   20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-application.vala b/gitg/gitg-application.vala
index b9d351e..0d96066 100644
--- a/gitg/gitg-application.vala
+++ b/gitg/gitg-application.vala
@@ -284,7 +284,8 @@ public class Application : Gtk.Application
                        {"win.close", "<Primary>Q"},
                        {"win.reload", "<Primary>R"},
                        {"win.gear-menu", "F10"},
-                       {"win.open-repository", "<Primary>O"}
+                       {"win.open-repository", "<Primary>O"},
+                       {"win.close", "<Primary>W"}
                };
 
                foreach (var accel in accels)
diff --git a/gitg/resources/ui/gitg-menus.ui b/gitg/resources/ui/gitg-menus.ui
index 097147e..d404c1a 100644
--- a/gitg/resources/ui/gitg-menus.ui
+++ b/gitg/resources/ui/gitg-menus.ui
@@ -46,6 +46,12 @@
         <attribute name="action">win.author-details-global</attribute>
       </item>
     </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Close</attribute>
+        <attribute name="action">win.close</attribute>
+      </item>
+    </section>
   </menu>
   <menu id="win-menu-views">
     <section>
@@ -60,6 +66,12 @@
         <attribute name="action">win.author-details-repo</attribute>
       </item>
     </section>
+    <section>
+      <item>
+        <attribute name="label" translatable="yes">_Close</attribute>
+        <attribute name="action">win.close</attribute>
+      </item>
+    </section>
   </menu>
    <menu id="app-win-menu-dash">
     <section>
@@ -102,6 +114,10 @@
     </section>
     <section>
       <item>
+        <attribute name="label" translatable="yes">_Close</attribute>
+        <attribute name="action">win.close</attribute>
+      </item>
+      <item>
         <attribute name="label" translatable="yes">_Quit</attribute>
         <attribute name="action">app.quit</attribute>
       </item>
@@ -144,6 +160,10 @@
     </section>
     <section>
       <item>
+        <attribute name="label" translatable="yes">_Close</attribute>
+        <attribute name="action">win.close</attribute>
+      </item>
+      <item>
         <attribute name="label" translatable="yes">_Quit</attribute>
         <attribute name="action">app.quit</attribute>
       </item>


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