Fix object test

This commit is contained in:
Matthias Clasen 2013-06-15 19:47:33 -04:00
parent 949402ebed
commit fdb983f67e

View File

@ -276,12 +276,9 @@ static void
widget_fixups (GtkWidget *widget) widget_fixups (GtkWidget *widget)
{ {
/* post-constructor for widgets that need additional settings to work correctly */ /* post-constructor for widgets that need additional settings to work correctly */
if (GTK_IS_COMBO_BOX (widget)) if (GTK_IS_COMBO_BOX_TEXT (widget))
{ {
GtkListStore *store = gtk_list_store_new (1, G_TYPE_STRING); gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "test text");
g_object_set (widget, "model", store, NULL);
g_object_unref (store);
gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "test text");
} }
} }