[gtk+] Fix object test



commit fdb983f67e9e8758a67111566dbb53fca34b6b5d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 15 19:47:33 2013 -0400

    Fix object test

 testsuite/gtk/object.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/gtk/object.c b/testsuite/gtk/object.c
index 1e06ded..a258fb1 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");
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]