]> Pileus Git - ~andy/gtk/commitdiff
testgtk: Work around some property editor problem
authorMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jun 2012 12:41:08 +0000 (08:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 2 Jun 2012 12:41:08 +0000 (08:41 -0400)
The property editor fails to show anything for GtkSettings, unless
we tell it to just show GTK_TYPE_SETTINGS. For now, do just that, then.

tests/testgtk.c

index 2e6304a9e4285e26f0365f09a5475ffef2bcac17..343b4bc52b2a266df459a6e33c8ca551da32656c 100644 (file)
@@ -6006,7 +6006,7 @@ create_settings (GtkWidget *widget)
 
   if (!window)
     {
-      window = create_prop_editor (G_OBJECT (gtk_settings_get_default ()), 0);
+      window = create_prop_editor (G_OBJECT (gtk_settings_get_default ()), GTK_TYPE_SETTINGS);
       gtk_window_set_screen (GTK_WINDOW (window),
                              gtk_widget_get_screen (widget));