mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gtk-demo: Fix the links example
The keynav dialog is transient to the example window; since the example window is now modal, we need to make the keynav dialog modal as well, so it can receive input. Problem pointed out by Jasper St. Pierre.
This commit is contained in:
parent
5ac2346862
commit
9268ef36ab
@ -33,6 +33,7 @@ activate_link (GtkWidget *label,
|
|||||||
"The term <i>keynav</i> is a shorthand for "
|
"The term <i>keynav</i> is a shorthand for "
|
||||||
"keyboard navigation and refers to the process of using "
|
"keyboard navigation and refers to the process of using "
|
||||||
"a program (exclusively) via keyboard input.");
|
"a program (exclusively) via keyboard input.");
|
||||||
|
gtk_window_set_modal (dialog, TRUE);
|
||||||
|
|
||||||
gtk_window_present (GTK_WINDOW (dialog));
|
gtk_window_present (GTK_WINDOW (dialog));
|
||||||
g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL);
|
g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user