]> Pileus Git - ~andy/gtk/commitdiff
testgtk: Fix deprecation
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 04:20:42 +0000 (06:20 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 9 Jun 2011 04:20:42 +0000 (06:20 +0200)
tests/testgtk.c

index e68648589a462a2244d125d77a22606ff840ad5f..005d57560328664432cd494640effda71f3ddaa6 100644 (file)
@@ -5046,10 +5046,7 @@ create_cursors (GtkWidget *widget)
                               NULL);
       g_object_set_data (G_OBJECT (spinner), "user_data", label);
 
-      any =
-       g_object_new (gtk_hseparator_get_type (),
-                       "GtkWidget::visible", TRUE,
-                       NULL);
+      any = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
       gtk_box_pack_start (GTK_BOX (main_vbox), any, FALSE, TRUE, 0);
   
       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);