[glom] Slight code improvement.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Slight code improvement.
- Date: Wed, 28 Mar 2012 08:23:35 +0000 (UTC)
commit abba67f736c1c6a270a9e8e93cd16979c190f270
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Mar 28 10:19:25 2012 +0200
Slight code improvement.
* glom/mode_find/box_data_details_find.cc:
* glom/mode_find/box_data_list_find.cc: Use C++ instead of C
to set can_default.
ChangeLog | 8 ++++++++
glom/mode_find/box_data_details_find.cc | 3 ++-
glom/mode_find/box_data_list_find.cc | 3 ++-
3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index fcdce7a..e5b2410 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-03-28 Murray Cumming <murrayc murrayc com>
+
+ Slight code improvement.
+
+ * glom/mode_find/box_data_details_find.cc:
+ * glom/mode_find/box_data_list_find.cc: Use C++ instead of C
+ to set can_default.
+
2012-03-27 Murray Cumming <murrayc murrayc com>
Dialog_Choose_ID: Remove use of a deprecated signal.
diff --git a/glom/mode_find/box_data_details_find.cc b/glom/mode_find/box_data_details_find.cc
index 63d87f2..3d163b6 100644
--- a/glom/mode_find/box_data_details_find.cc
+++ b/glom/mode_find/box_data_details_find.cc
@@ -32,7 +32,8 @@ Box_Data_Details_Find::Box_Data_Details_Find()
//Instead of nav buttons:
m_hbox_buttons.pack_end(m_Button_Find, Gtk::PACK_SHRINK);
- g_object_set(m_Button_Find.gobj(), "can-default", TRUE, (gpointer)0); //TODO: Make this a real method in gtkmm?
+ //A signal handler is connected in the Box_Data base class.
+ m_Button_Find.set_can_default();
#ifndef GLOM_ENABLE_CLIENT_ONLY
//Hide this because it is useless for Find mode:
diff --git a/glom/mode_find/box_data_list_find.cc b/glom/mode_find/box_data_list_find.cc
index faa3218..5be88c5 100644
--- a/glom/mode_find/box_data_list_find.cc
+++ b/glom/mode_find/box_data_list_find.cc
@@ -33,7 +33,8 @@ Box_Data_List_Find::Box_Data_List_Find()
m_HBox.pack_end(m_Button_Find, Gtk::PACK_SHRINK);
pack_start(m_HBox, Gtk::PACK_SHRINK);
- g_object_set(m_Button_Find.gobj(), "can-default", TRUE, (gpointer)0); //TODO: Make this a real method in gtkmm?
+ //A signal handler is connected in the Box_Data base class.
+ m_Button_Find.set_can_default();
//Prevent the widget from trying to add or change records:
m_AddDel.set_find_mode();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]