[gedit/wip/redesign2: 34/35] Bring back Save All and Close All



commit a652d3cc54ac812eaf8092ab23d76e9a9060bd8b
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 f70364e..643881a 100644
--- a/gedit/gedit-window.ui
+++ b/gedit/gedit-window.ui
@@ -8,13 +8,18 @@
     <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>
         <attribute name="accel">&lt;Primary&gt;&lt;Shift&gt;s</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>
@@ -91,6 +96,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>
         <attribute name="accel">&lt;Primary&gt;w</attribute>


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