[gtkmm] Gtk::Entry: Deprecate the activate signal.



commit 7e247e3ab775bc2205d401ce31c1da1270ec4abb
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 23 10:21:46 2012 +0100

    Gtk::Entry: Deprecate the activate signal.
    
    * gtk/src/entry.hg: Because this has been documented,
    since 2008, as not for use by applications, though we
    were told to use it in 2003.
    This requires the latest glibmm from git master.
    Bug #655489 (Kjell Ahlstedt)

 ChangeLog        |   10 ++++++++++
 gtk/src/entry.hg |    7 +------
 2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4fc2b1e..75243b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-03-23  Murray Cumming  <murrayc murrayc com>
+
+	Gtk::Entry: Deprecate the activate signal.
+
+	* gtk/src/entry.hg: Because this has been documented,
+	since 2008, as not for use by applications, though we
+	were told to use it in 2003.
+	This requires the latest glibmm from git master. 
+	Bug #655489 (Kjell Ahlstedt)
+
 2012-03-16  Murray Cumming  <murrayc murrayc com>
 
 	CellArea: Add properties.
diff --git a/gtk/src/entry.hg b/gtk/src/entry.hg
index 2d1ba72..1c389e8 100644
--- a/gtk/src/entry.hg
+++ b/gtk/src/entry.hg
@@ -221,12 +221,7 @@ public:
 #m4 _CONVERSION(`const char*',`const Glib::ustring&',__GCHARP_TO_USTRING)
   _WRAP_SIGNAL(void insert_at_cursor(const Glib::ustring& str), "insert_at_cursor")
 
-  //Key-binding signals:
-
-  //This is a keybinding signal, but it is allowed:
-  // http://mail.gnome.org/archives/gtk-devel-list/2003-January/msg00108.html
-  // "activate is probably about the only exception"
-  _WRAP_SIGNAL(void activate(), "activate")
+  _WRAP_SIGNAL(void activate(), "activate", deprecated "Use signal_key_press_event() or signal_focus_out_event() instead.")
 
   _WRAP_SIGNAL(void icon_release(EntryIconPosition icon_position, const GdkEventButton* event), "icon-release", no_default_handler)
   _WRAP_SIGNAL(void icon_press(EntryIconPosition icon_position, const GdkEventButton* event), "icon-press", no_default_handler)



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