[gnome-notes] color-button: Make color chooser dialog modal



commit 3b20661f911c4cfa9cc4125f2bceff237783ed82
Author: Jonathan Kang <jonathankang gnome org>
Date:   Tue May 14 10:54:33 2019 +0800

    color-button: Make color chooser dialog modal
    
    Set the color chooser modal to prevent interaction with other windows
    in the same application.

 src/bjb-color-button.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/bjb-color-button.c b/src/bjb-color-button.c
index 4185106..e094760 100644
--- a/src/bjb-color-button.c
+++ b/src/bjb-color-button.c
@@ -100,8 +100,7 @@ bjb_color_button_clicked (GtkButton *b)
           if (GTK_WINDOW (parent) != gtk_window_get_transient_for (GTK_WINDOW (dialog)))
             gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
 
-          gtk_window_set_modal (GTK_WINDOW (dialog),
-                                gtk_window_get_modal (GTK_WINDOW (parent)));
+          gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
         }
 
       for (i=0 ; i< BJB_NUM_COLORS ; i++)


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