[gedit/wip/redesign2: 26/28] Bring back Save All and Close All



commit e6c906bf0faf8f199c2b34c4c1a13809870df490
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Jan 5 18:05:27 2014 +0100

    Bring back Save All and Close All

 gedit/gedit-window.c  |   10 +++++-----
 gedit/gedit-window.ui |   14 ++++++++++++--
 2 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index cc5d59e..8b99a2f 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -2872,13 +2872,15 @@ activate_toggle (GSimpleAction *action,
 }
 
 static GActionEntry win_entries[] = {
-       { "open", _gedit_cmd_file_open },
        { "new_tab", _gedit_cmd_file_new },
+       { "open", _gedit_cmd_file_open },
+       { "revert", _gedit_cmd_file_revert },
        { "save", _gedit_cmd_file_save },
        { "save_as", _gedit_cmd_file_save_as },
-       { "print", _gedit_cmd_file_print },
-       { "revert", _gedit_cmd_file_revert },
+       { "save_all", _gedit_cmd_file_save_all },
        { "close", _gedit_cmd_file_close },
+       { "close_all", _gedit_cmd_file_close_all },
+       { "print", _gedit_cmd_file_print },
        { "side_panel", activate_toggle, NULL, "false", _gedit_cmd_view_toggle_side_panel },
        { "bottom_panel", activate_toggle, NULL, "false", _gedit_cmd_view_toggle_bottom_panel },
        { "fullscreen", activate_toggle, NULL, "false", _gedit_cmd_view_toggle_fullscreen_mode },
@@ -2889,8 +2891,6 @@ static GActionEntry win_entries[] = {
        { "replace", _gedit_cmd_search_replace },
        { "clear_highlight", _gedit_cmd_search_clear_highlight },
        { "goto_line", _gedit_cmd_search_goto_line },
-       { "save_all", _gedit_cmd_file_save_all },
-       { "close_all", _gedit_cmd_file_close_all },
        { "new_tab_group", _gedit_cmd_documents_new_tab_group },
        { "previous_tab_group", _gedit_cmd_documents_previous_tab_group },
        { "next_tab_group", _gedit_cmd_documents_next_tab_group },
diff --git a/gedit/gedit-window.ui b/gedit/gedit-window.ui
index 9ec44ca..916f86b 100644
--- a/gedit/gedit-window.ui
+++ b/gedit/gedit-window.ui
@@ -8,12 +8,17 @@
     <section>
       <attribute name="id">ext2</attribute>
       <item>
+        <attribute name="label" translatable="yes">_Reload</attribute>
+        <attribute name="action">win.revert</attribute>
+      </item>
+      <item>
         <attribute name="label" translatable="yes">_Save As…</attribute>
         <attribute name="action">win.save_as</attribute>
       </item>
       <item>
-        <attribute name="label" translatable="yes">_Reload</attribute>
-        <attribute name="action">win.revert</attribute>
+        <attribute name="label" translatable="yes">Save _All</attribute>
+        <attribute name="action">win.save_all</attribute>
+        <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;l</attribute>
       </item>
     </section>
     <section>
@@ -82,6 +87,11 @@
     <section>
       <attribute name="id">ext12</attribute>
       <item>
+        <attribute name="label" translatable="yes">_Close All</attribute>
+        <attribute name="action">win.close_all</attribute>
+        <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;w</attribute>
+      </item>
+      <item>
         <attribute name="label" translatable="yes">_Close</attribute>
         <attribute name="action">win.close</attribute>
       </item>


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