forked from AuroraMiddleware/gtk
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:
parent
901127243a
commit
a66147dc82
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user