[gtk+/gtk-2-24] migrating-GtkComboBox.sgml: Do not use deprecated API in the examples



commit 8f3f5fab27662fdc25769367929e9704314d9422
Author: Javier JardÃn <jjardon gnome org>
Date:   Mon Jan 2 02:49:20 2012 +0100

    migrating-GtkComboBox.sgml: Do not use deprecated API in the examples

 docs/reference/gtk/migrating-GtkComboBox.sgml |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/docs/reference/gtk/migrating-GtkComboBox.sgml b/docs/reference/gtk/migrating-GtkComboBox.sgml
index 4114bdc..126e3ed 100644
--- a/docs/reference/gtk/migrating-GtkComboBox.sgml
+++ b/docs/reference/gtk/migrating-GtkComboBox.sgml
@@ -56,11 +56,11 @@ gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
       <informalexample><programlisting>
 GtkWidget *combo_box;
 
-combo_box = gtk_combo_box_new_text (<!-- -->);
+combo_box = gtk_combo_box_text_new (<!-- -->);
 
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "First Item");
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Second Item");
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Third Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "First Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "Second Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "Third Item");
       </programlisting></informalexample>
       In order to react to the user's selection, connect to the 
       #GtkComboBox::changed signal and use gtk_combo_box_get_active()
@@ -149,11 +149,11 @@ gtk_combo_set_popdown_strings (GTK_COMBO (combo), items);
     <para>
       And here is how it would be done using #GtkComboBoxEntry<!---->:
       <informalexample><programlisting>
-combo_box = gtk_combo_box_entry_new_text (<!-- -->);
+combo_box = gtk_combo_box_text_new_with_entry (<!-- -->);
 
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "First Item");
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Second Item");
-gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), "Third Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "First Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "Second Item");
+gtk_combo_box_text_append (GTK_COMBO_BOX_TEXT (combo_box), "Third Item");
       </programlisting></informalexample>
       In order to react to the user's selection, connect to the #GtkComboBox::changed
       signal on the combo and use 



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