gtk-demo: Don't make demos modal

That way, demo windows can be maximized and multiple demos can run at
once.

It's especially useful when using --run because the main window is
invisible then.
This commit is contained in:
Benjamin Otte 2020-07-12 03:35:11 +02:00
parent 22eccbdbb6
commit c5ea59d7d1

View File

@ -1249,7 +1249,6 @@ out:
demo = (func) (window);
gtk_window_set_transient_for (GTK_WINDOW (demo), GTK_WINDOW (window));
gtk_window_set_modal (GTK_WINDOW (demo), TRUE);
g_signal_connect_swapped (G_OBJECT (demo), "destroy", G_CALLBACK (g_application_quit), app);
}