[glom] AppWindow: Change file.close to win.close.



commit 4e8bf6f3ab44b274192abfb5e705c055e86118ce
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Oct 17 21:16:53 2013 +0200

    AppWindow: Change file.close to win.close.
    
    * glom/application.[h|cc]: Add the close action to the standard
      appwindow menu group, instead of our custom file group.
    * ui/operator/window_main.glade: Rename it here too.
    
      There is no reason not to do this, though I still do not know
      of any advantage to it.
    Because there is no need not to.

 glom/appwindow.cc             |    3 ++-
 ui/operator/window_main.glade |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index dbca49e..fc985fa 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -288,7 +288,8 @@ void AppWindow::init_menus_file()
   m_listDeveloperActions.push_back(action_print_edit);
 #endif // !GLOM_ENABLE_CLIENT_ONLY
 
-  m_refActionGroup_File->add_action("close",
+  //Add to the window's regular "win" ActionMap:
+  add_action("close",
     sigc::mem_fun((GlomBakery::AppWindow_WithDoc&)*this, 
&GlomBakery::AppWindow_WithDoc::on_menu_file_close));
 
   insert_action_group("file", m_refActionGroup_File);
diff --git a/ui/operator/window_main.glade b/ui/operator/window_main.glade
index 7280fcc..78d9357 100644
--- a/ui/operator/window_main.glade
+++ b/ui/operator/window_main.glade
@@ -197,7 +197,7 @@
       <section>
         <item>
           <attribute name='label' translatable='yes'>_Close</attribute>
-          <attribute name='action'>file.close</attribute>
+          <attribute name='action'>win.close</attribute>
           <attribute name='accel'>&lt;Primary&gt;w</attribute>
         </item>
       </section>


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