[glom] Frame: Rename a signal handler.



commit 963a655ae1ad3604d08d560301f85d9e08e8c314
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jun 23 19:06:28 2011 +0200

    Frame: Rename a signal handler.
    
    * glom/frame_glom.[h|cc]: Rename on_menu_Mode_Toggle() to
    on_menu_Edit_Find() because that is what it is now.
    * glom/application.cc: Adapted.

 ChangeLog           |    8 ++++++++
 glom/application.cc |    8 ++++----
 glom/frame_glom.cc  |    2 +-
 glom/frame_glom.h   |    2 +-
 4 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 80ed572..c416edb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-06-23  Murray Cumming  <murrayc murrayc com>
 
+	Frame: Rename a signal handler.
+
+	* glom/frame_glom.[h|cc]: Rename on_menu_Mode_Toggle() to 
+	on_menu_Edit_Find() because that is what it is now.
+	* glom/application.cc: Adapted.
+
+2011-06-23  Murray Cumming  <murrayc murrayc com>
+
 	Main window: Moved the Records/Found widgets to the top-right.
 	
 	* ui/operator/window_main.glade: Remove the footer row of widgets.
diff --git a/glom/application.cc b/glom/application.cc
index 5c8e41c..6a58b40 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -409,7 +409,7 @@ void Application::init_menus()
 
   add_button_to_appmenu(m_maemo_appmenu,
     _("Find"), _("Search for records in the table"),
-    sigc::mem_fun(*m_pFrame, &Frame_Glom::on_menu_Mode_Toggle) );
+    sigc::mem_fun(*m_pFrame, &Frame_Glom::on_menu_Edit_Find) );
 
   add_button_to_appmenu(m_maemo_appmenu,
     _("Add Record"), _("Create a new record in the table"),
@@ -461,9 +461,9 @@ void Application::init_menus()
 #endif
 
   //We remember this action, so that it can be explicitly activated later.
-  m_action_mode_find = Gtk::ToggleAction::create("GlomAction_Menu_Mode_Toggle", _("_Find"), "", false);
+  m_action_mode_find = Gtk::ToggleAction::create("GlomAction_Menu_Edit_Find", _("_Find"), "", false);
   m_refActionGroup_Others->add(m_action_mode_find,  Gtk::AccelKey("<control>F"),
-                        sigc::mem_fun(*m_pFrame, &Frame_Glom::on_menu_Mode_Toggle) );
+                        sigc::mem_fun(*m_pFrame, &Frame_Glom::on_menu_Edit_Find) );
   m_listTableSensitiveActions.push_back(m_action_mode_find);
 
 #ifndef GLOM_ENABLE_CLIENT_ONLY
@@ -579,7 +579,7 @@ void Application::init_menus()
     "        <menuitem action='BakeryAction_Edit_Paste' />"
     "        <menuitem action='BakeryAction_Edit_Clear' />"
     "        <separator />"
-    "        <menuitem action='GlomAction_Menu_Mode_Toggle' />"
+    "        <menuitem action='GlomAction_Menu_Edit_Find' />"
     "      </menu>"
     "    </placeholder>"
     "    <placeholder name='Bakery_MenuPH_Others'>"
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index f2620c6..e292188 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -1081,7 +1081,7 @@ void Frame_Glom::show_layout_toolbar (bool show)
 
 #endif // !GLOM_ENABLE_CLIENT_ONLY
 
-void Frame_Glom::on_menu_Mode_Toggle()
+void Frame_Glom::on_menu_Edit_Find()
 {
   //Switch back to data mode if we are in find mode.
   if(m_Mode == MODE_Find)
diff --git a/glom/frame_glom.h b/glom/frame_glom.h
index fe2e1ad..0132ada 100644
--- a/glom/frame_glom.h
+++ b/glom/frame_glom.h
@@ -89,7 +89,7 @@ public:
   void on_menu_file_toggle_share(const Glib::RefPtr<Gtk::ToggleAction>& action);
   void on_menu_file_print();
 
-  void on_menu_Mode_Toggle();
+  void on_menu_Edit_Find();
 
   //TODO: Actually put this in the menu for non-maemo too? #ifdef GLOM_ENABLE_MAEMO
   void on_menu_add_record();



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