diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-12-03 23:30:52 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-12-03 23:30:52 -0500 |
commit | a66147dc82b63a664d60665badcbfda542d202cd (patch) | |
tree | 216ff3a7089ef0011924191ae2d0b75e67714a99 /demos | |
parent | 901127243a2ff415d7b32a9929af4a0e590e01f6 (diff) | |
download | gtk+-a66147dc82b63a664d60665badcbfda542d202cd.tar.gz |
gtk-demo: fix colorchooser example
A nested dialog on top of a modal dialog must itself be modal,
otherwise it doesn't get any input.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/colorsel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/gtk-demo/colorsel.c b/demos/gtk-demo/colorsel.c index 73042f932f..566af21e52 100644 --- a/demos/gtk-demo/colorsel.c +++ b/demos/gtk-demo/colorsel.c @@ -52,6 +52,7 @@ change_color_callback (GtkWidget *button, GtkWidget *dialog; dialog = gtk_color_chooser_dialog_new ("Changing color", GTK_WINDOW (window)); + gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color); g_signal_connect (dialog, |