summaryrefslogtreecommitdiff
path: root/docs/tools/widgets.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-02 18:19:46 +0200
committerMatthias Clasen <mclasen@redhat.com>2010-10-15 16:58:27 -0400
commite7f51ef6a411dc4c784c3edc67df294288de3f75 (patch)
treeece84455ae96925ea61849f2af984b953ecd3a95 /docs/tools/widgets.c
parent99cfbecf466193f2a132e4476f92723b8c51e4a5 (diff)
downloadgtk+-e7f51ef6a411dc4c784c3edc67df294288de3f75.tar.gz
Use the new GtkComboBoxText API
Also remove mentions of the old text convenience API from the docs, and point to GtkComboBoxText instead.
Diffstat (limited to 'docs/tools/widgets.c')
-rw-r--r--docs/tools/widgets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index d5a9901ae5..206c26e32c 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -316,8 +316,8 @@ create_combo_box (void)
"}\n"
"widget_class \"GtkComboBox\" style \"combo-box-style\"\n" );
- widget = gtk_combo_box_new_text ();
- gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Combo Box");
+ widget = gtk_combo_box_text_new ();
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Combo Box");
gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_container_add (GTK_CONTAINER (align), widget);