[gtk/matthiasc/for-master: 1/2] widget-factory: Restore modality of the about dialog




commit b3657d5f2e0812790ac5b2888b6c9242d619cc9b
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Nov 2 19:15:26 2020 -0500

    widget-factory: Restore modality of the about dialog
    
    Make the about dialog of widget-factory modal again.
    This was lost in 87a8fda163d419ee3e.

 demos/widget-factory/widget-factory.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 1d81031a8e..e86ebf6ee4 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -302,6 +302,7 @@ activate_about (GSimpleAction *action,
 
   dialog = g_object_new (GTK_TYPE_ABOUT_DIALOG,
                          "transient-for", gtk_application_get_active_window (app),
+                         "modal", TRUE,
                          "program-name", "GTK Widget Factory",
                          "version", version,
                          "copyright", "© 1997—2020 The GTK Team",


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