[glom] Dialog_Choose_ID: Remove use of a deprecated signal.



commit ffa88174bcd06dcdc15c10c02936258f2e6b9729
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 27 17:02:52 2012 +0200

    Dialog_Choose_ID: Remove use of a deprecated signal.
    
    	* glom/mode_data/datawidget/dialog_choose_id.cc:
    	Do not connect to Gtk::Entry::signal_activate(),
    	which is deprecated. It is unnecessary anyway,
    	because the entry already activates the button
    	via the activates-default and can/has-default properties.

 ChangeLog                                     |   10 ++++++++++
 glom/mode_data/datawidget/dialog_choose_id.cc |    4 +---
 2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index a88e5e9..fcdce7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-27  Murray Cumming  <murrayc murrayc com>
+
+	Dialog_Choose_ID: Remove use of a deprecated signal.
+
+	* glom/mode_data/datawidget/dialog_choose_id.cc:
+	Do not connect to Gtk::Entry::signal_activate(),
+	which is deprecated. It is unnecessary anyway,
+	because the entry already activates the button
+	via the activates-default and can/has-default properties.
+
 2012-03-26  Murray Cumming  <murrayc murrayc com>
 
 	Dialog_Import_CSV_Progress: Fix a typo.
diff --git a/glom/mode_data/datawidget/dialog_choose_id.cc b/glom/mode_data/datawidget/dialog_choose_id.cc
index 5648837..18d2656 100644
--- a/glom/mode_data/datawidget/dialog_choose_id.cc
+++ b/glom/mode_data/datawidget/dialog_choose_id.cc
@@ -59,10 +59,8 @@ Dialog_ChooseID::Dialog_ChooseID(BaseObjectType* cobject, const Glib::RefPtr<Gtk
 
   builder->get_widget("hbox_quickfind", m_pBox_QuickFind);
   builder->get_widget("entry_quickfind", m_pEntry_QuickFind);
-  m_pEntry_QuickFind->signal_activate().connect(
-   sigc::mem_fun(*this, &Dialog_ChooseID::on_button_quickfind) ); //Pressing Enter here is like pressing Find.
-
   builder->get_widget("button_quickfind", m_pButton_QuickFind);
+
   m_pButton_QuickFind->signal_clicked().connect(
     sigc::mem_fun(*this, &Dialog_ChooseID::on_button_quickfind) );
 



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