background: Make it possible to use gtkparasite with the test

The dialog has to be non-modal for us to be able to inspect it with
gtkparasite.
This commit is contained in:
Debarshi Ray 2013-10-03 11:47:01 +02:00
parent 1445700c62
commit 176e8c3057

View file

@ -27,6 +27,7 @@ int main (int argc, char **argv)
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
dialog = cc_background_chooser_dialog_new (); dialog = cc_background_chooser_dialog_new ();
gtk_window_set_modal (GTK_WINDOW (dialog), FALSE);
g_signal_connect (G_OBJECT (dialog), "response", g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (on_dialog_response), NULL); G_CALLBACK (on_dialog_response), NULL);
gtk_widget_show_all (dialog); gtk_widget_show_all (dialog);