From fdb983f67e9e8758a67111566dbb53fca34b6b5d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 15 Jun 2013 19:47:33 -0400 Subject: [PATCH] Fix object test --- testsuite/gtk/object.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/testsuite/gtk/object.c b/testsuite/gtk/object.c index 1e06dede8f..a258fb1697 100644 --- a/testsuite/gtk/object.c +++ b/testsuite/gtk/object.c @@ -276,12 +276,9 @@ static void widget_fixups (GtkWidget *widget) { /* 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); - g_object_set (widget, "model", store, NULL); - g_object_unref (store); - gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "test text"); + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "test text"); } }