[gtk/wip/otte/for-master: 4/6] gtk-demo: Don't make demos modal



commit cb5f1f25a47a1bb6edcf0c15edc6814c40df8b21
Author: Benjamin Otte <otte redhat com>
Date:   Sun Jul 12 03:35:11 2020 +0200

    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.

 demos/gtk-demo/main.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 880dcbaf1b..0e3283aaa8 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]