testgtk: Work around some property editor problem

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.
This commit is contained in:
Matthias Clasen 2012-06-02 08:41:08 -04:00
parent eeb5299573
commit 1617344222

View 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));