summaryrefslogtreecommitdiff
path: root/tests/testellipsise.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 /tests/testellipsise.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 'tests/testellipsise.c')
-rw-r--r--tests/testellipsise.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/testellipsise.c b/tests/testellipsise.c
index 61240332f2..973b955766 100644
--- a/tests/testellipsise.c
+++ b/tests/testellipsise.c
@@ -136,14 +136,14 @@ main (int argc, char *argv[])
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (window), vbox);
- combo = gtk_combo_box_new_text ();
+ combo = gtk_combo_box_text_new ();
scale = gtk_hscale_new_with_range (0, 360, 1);
label = gtk_label_new ("This label may be ellipsized\nto make it fit.");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "NONE");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "START");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "MIDDLE");
- gtk_combo_box_append_text (GTK_COMBO_BOX (combo), "END");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "NONE");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "START");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "MIDDLE");
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), "END");
gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);