[gtkmm] gtk-demo: Fix the build for the append_text() to append() change.



commit 3ef41307bfb5fcda796b5cf1a8cc4723460185ea
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Dec 3 13:15:25 2010 +0100

    gtk-demo: Fix the build for the append_text() to append() change.
    
    * demos/gtk-demo/example_sizegroup.cc:
    * demos/gtk-demo/example_textview.cc: use append() instead of append_text()
    with Gtk::ComboBoxText.

 ChangeLog                           |    8 ++++++++
 demos/gtk-demo/example_sizegroup.cc |    2 +-
 demos/gtk-demo/example_textview.cc  |    6 +++---
 3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 85c3322..c605685 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2010-12-03  Murray Cumming  <murrayc murrayc com>
 
+	gtk-demo: Fix the build for the append_text() to append() change.
+
+	* demos/gtk-demo/example_sizegroup.cc:
+	* demos/gtk-demo/example_textview.cc: use append() instead of append_text()
+	with Gtk::ComboBoxText.
+
+2010-12-03  Murray Cumming  <murrayc murrayc com>
+
 	Regenerated some .defs files.
 
 	* gdk/src/gdk_signals.defs: Regenerated with extra_defs/.
diff --git a/demos/gtk-demo/example_sizegroup.cc b/demos/gtk-demo/example_sizegroup.cc
index c980a99..89f4e12 100644
--- a/demos/gtk-demo/example_sizegroup.cc
+++ b/demos/gtk-demo/example_sizegroup.cc
@@ -153,7 +153,7 @@ Gtk::ComboBoxText* Example_SizeGroup::create_combobox(const std::list<Glib::ustr
 
   for(type_listStrings::const_iterator iter = strings.begin(); iter != strings.end(); iter++)
   {
-    pCombo->append_text(*iter);
+    pCombo->append(*iter);
   }
 
   return pCombo;
diff --git a/demos/gtk-demo/example_textview.cc b/demos/gtk-demo/example_textview.cc
index 8f36868..1014b22 100644
--- a/demos/gtk-demo/example_textview.cc
+++ b/demos/gtk-demo/example_textview.cc
@@ -381,9 +381,9 @@ void Example_TextView::attach_widgets(Gtk::TextView& text_view)
     else if (i == 1)
     {
       Gtk::ComboBoxText* pCombo = Gtk::manage( new Gtk::ComboBoxText() );
-      pCombo->append_text("Option 1");
-      pCombo->append_text("Option 2");
-      pCombo->append_text("Option 3");
+      pCombo->append("Option 1");
+      pCombo->append("Option 2");
+      pCombo->append("Option 3");
 
       pWidget = pCombo;
     }



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