[gtkmm] ComboBox: Add set_active_id(), deprecating get_active_id(string).



commit ed27110e530e0c5360ca6b908e52fd56782b35bd
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 9 20:22:18 2012 +0200

    ComboBox: Add set_active_id(), deprecating get_active_id(string).
    
            * gtk/src/combobox.hg: We just got the name wrong before, calling it
    get instead of set. Also gave it the bool return type from the
    C function.
    Bug #685801 (Phil Wolff)

 ChangeLog           |    9 +++++++++
 gtk/src/combobox.hg |    3 ++-
 2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d5940a0..cdc165c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2012-10-09  Murray Cumming  <murrayc murrayc com>
+
+        ComboBox: Add set_active_id(), deprecating get_active_id(string).
+
+        * gtk/src/combobox.hg: We just got the name wrong before, calling it
+	get instead of set. Also gave it the bool return type from the 
+	C function.
+	Bug #685801 (Phil Wolff)
+
 2012-10-07  Murray Cumming  <murrayc murrayc com>
 
         WindowGroup: Add list_windows() and get_current_grab().
diff --git a/gtk/src/combobox.hg b/gtk/src/combobox.hg
index 4d70e5a..99fb2b4 100644
--- a/gtk/src/combobox.hg
+++ b/gtk/src/combobox.hg
@@ -188,7 +188,8 @@ public:
   _WRAP_METHOD(int get_id_column() const, gtk_combo_box_get_id_column)
   _WRAP_METHOD(void set_id_column(int id_column), gtk_combo_box_set_id_column)
   _WRAP_METHOD(Glib::ustring get_active_id() const, gtk_combo_box_get_active_id)
-  _WRAP_METHOD(void get_active_id(const Glib::ustring& active_id), gtk_combo_box_set_active_id)
+  _WRAP_METHOD(void get_active_id(const Glib::ustring& active_id), gtk_combo_box_set_active_id, deprecated "Use set_active_id(). This method was incorrectly named.")
+  _WRAP_METHOD(bool set_active_id(const Glib::ustring& active_id), gtk_combo_box_set_active_id)
 
   _IGNORE(gtk_combo_box_append_text, gtk_combo_box_insert_text, gtk_combo_box_prepend_text, gtk_combo_box_remove_text, gtk_combo_box_get_active_text) //deprecated
 



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