summaryrefslogtreecommitdiff
path: root/src/color.c
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2012-09-18 18:33:07 +0200
committerMatthias Clasen <mclasen@redhat.com>2012-09-25 18:46:12 -0400
commit0628bd3291aad936b6b553366600590cca360bfa (patch)
tree667b6e8ad8a92d9f57cea3cfc1a82f8ee39e15cf /src/color.c
parentUpdated Latvian translation (diff)
downloadzenity-0628bd3291aad936b6b553366600590cca360bfa.tar.gz
zenity-0628bd3291aad936b6b553366600590cca360bfa.tar.bz2
zenity-0628bd3291aad936b6b553366600590cca360bfa.zip
util: Add an option to request dialogs being modal
As WMs cannot open windows themselves, Mutter uses zenity to open "Force Quit" dialogs for unresponsive windows; as those are strongly tied to the corresponding window, it makes sense to make them modal (in particular when attaching them to their parent). https://bugzilla.gnome.org/show_bug.cgi?id=684322
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/color.c b/src/color.c
index 4c9c1517..791d76da 100644
--- a/src/color.c
+++ b/src/color.c
@@ -73,6 +73,9 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data)
g_object_unref (G_OBJECT (button));
}
+ if (data->modal)
+ gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+
gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (colorsel),
color_data->show_palette);
bgstack15