]> Pileus Git - ~andy/gtk/blobdiff - tests/prop-editor.c
Use the new GtkComboBoxText API
[~andy/gtk] / tests / prop-editor.c
index bc99f655bac95ca42d5f298e2fd6ec18e385ed36..0a9a3f863eb52fa19b44b1531a71de376ebf569a 100644 (file)
@@ -819,15 +819,15 @@ property_widget (GObject    *object,
        GEnumClass *eclass;
        gint j;
        
-       prop_edit = gtk_combo_box_new_text ();
+       prop_edit = gtk_combo_box_text_new ();
        
        eclass = G_ENUM_CLASS (g_type_class_ref (spec->value_type));
        
        j = 0;
        while (j < eclass->n_values)
          {
-           gtk_combo_box_append_text (GTK_COMBO_BOX (prop_edit),
-                                      eclass->values[j].value_name);
+           gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (prop_edit),
+                                           eclass->values[j].value_name);
            ++j;
          }