[glom] Really fix the About Box.



commit 5bbe11283c61877e4ff1c220a7fd5166ff8b4c6d
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jul 7 13:21:18 2011 +0200

    Really fix the About Box.
    
    	* glom/application.cc: Add the Help menu itself, and use set_program_name()
    	instead of set_name().

 ChangeLog           |    7 +++++++
 glom/application.cc |   12 ++++++++----
 2 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index db5a271..f4211e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-07-07  Murray Cumming  <murrayc murrayc com>
 
+	Really fix the About Box.
+
+	* glom/application.cc: Add the Help menu itself, and use set_program_name() 
+	instead of set_name().
+
+2011-07-07  Murray Cumming  <murrayc murrayc com>
+
 	Improve the About box.
 
 	* glom/application.[h|cc]:
diff --git a/glom/application.cc b/glom/application.cc
index f2667f0..1ca23c5 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -569,7 +569,12 @@ void Application::init_menus()
 
 #endif // !GLOM_ENABLE_CLIENT_ONLY
 
-  m_refHelpActionGroup = Gtk::ActionGroup::create("Glom_Menu_Help");
+  m_refUIManager->insert_action_group(m_refActionGroup_Others);
+  
+  action = Gtk::Action::create("Glom_Menu_Help", C_("Help menu title", "_Help"));
+  m_refActionGroup_Others->add(action);
+  
+  m_refHelpActionGroup = Gtk::ActionGroup::create("GlomHelpActions");
   m_refHelpActionGroup->add(Gtk::Action::create("GlomAction_Menu_Help", _("_Help")));
   
   m_refHelpActionGroup->add( Gtk::Action::create("GlomAction_Menu_Help_About",
@@ -578,8 +583,7 @@ void Application::init_menus()
   m_refHelpActionGroup->add( Gtk::Action::create("GlomAction_Menu_Help_Contents",
                         _("_Contents"), _("Help with the application")),
                         sigc::mem_fun(*this, &Application::on_menu_help_contents) );
-                        
-  m_refUIManager->insert_action_group(m_refActionGroup_Others);
+  m_refUIManager->insert_action_group(m_refHelpActionGroup);                       
 
   //Build part of the menu structure, to be merged in by using the "Bakery_MenuPH_Others" placeholder:
   static const Glib::ustring ui_description =
@@ -679,7 +683,7 @@ void Application::on_menu_help_about()
 
     m_pAbout = new Gtk::AboutDialog;
 
-    m_pAbout->set_name(m_strAppName);
+    m_pAbout->set_program_name(m_strAppName);
     m_pAbout->set_version(m_strVersion);
     m_pAbout->set_comments(_("A Database GUI"));
     m_pAbout->set_copyright(_("Â 2000-2011 Murray Cumming, Openismus GmbH"));



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