diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-02 18:19:46 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-10-15 16:58:27 -0400 |
commit | e7f51ef6a411dc4c784c3edc67df294288de3f75 (patch) | |
tree | ece84455ae96925ea61849f2af984b953ecd3a95 /tests/testtreeview.c | |
parent | 99cfbecf466193f2a132e4476f92723b8c51e4a5 (diff) | |
download | gtk+-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 'tests/testtreeview.c')
-rw-r--r-- | tests/testtreeview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testtreeview.c b/tests/testtreeview.c index 5115ae4f36..d28cb3520a 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -754,10 +754,10 @@ main (int argc, GDK_ACTION_MOVE | GDK_ACTION_COPY); /* Model menu */ - combo_box = gtk_combo_box_new_text (); + combo_box = gtk_combo_box_text_new (); for (i = 0; i < MODEL_LAST; i++) - gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), model_names[i]); - + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), model_names[i]); + gtk_table_attach (GTK_TABLE (table), combo_box, 0, 1, 0, 1, 0, 0, @@ -769,10 +769,10 @@ main (int argc, tv); /* Columns menu */ - combo_box = gtk_combo_box_new_text (); + combo_box = gtk_combo_box_text_new (); for (i = 0; i < COLUMNS_LAST; i++) - gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), column_type_names[i]); - + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), column_type_names[i]); + gtk_table_attach (GTK_TABLE (table), combo_box, 0, 1, 1, 2, 0, 0, |