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.
This commit is contained in:
Matthias Clasen 2013-12-03 23:30:52 -05:00
parent 901127243a
commit a66147dc82

View File

@ -52,6 +52,7 @@ change_color_callback (GtkWidget *button,
GtkWidget *dialog; GtkWidget *dialog;
dialog = gtk_color_chooser_dialog_new ("Changing color", GTK_WINDOW (window)); 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); gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color);
g_signal_connect (dialog, g_signal_connect (dialog,