summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Roth <robert.roth.off@gmail.com>2018-08-24 14:39:00 +0300
committerRobert Roth <robert.roth.off@gmail.com>2018-08-24 14:39:00 +0300
commitad5134a4c55fc8bdecebce72e0c69dce3e3896b0 (patch)
treecd25bb377baf4c1f3984b79f52bc8e2ad0e311b9
parent9e0f43e8cba45015487c692058c002f56087b9b8 (diff)
downloadgtk+-robertroth/non-modal-overlay.tar.gz
applicationwindow: do not set the help overlay modalrobertroth/non-modal-overlay
The application help overlay was unnecessarily set to modal. Some people would prefer keeping the help overlay open while interacting with the application, until they memorize the shortcuts. This commit simply sets the modal property of the shortcuts window to false. https://gitlab.gnome.org/GNOME/gtk/issues/971
-rw-r--r--gtk/gtkapplicationwindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 01e2efcb98..d7c5e8a231 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -958,7 +958,7 @@ gtk_application_window_set_help_overlay (GtkApplicationWindow *window,
if (!window->priv->help_overlay)
return;
- gtk_window_set_modal (GTK_WINDOW (help_overlay), TRUE);
+ gtk_window_set_modal (GTK_WINDOW (help_overlay), FALSE);
gtk_window_set_hide_on_close (GTK_WINDOW (help_overlay), TRUE);
gtk_window_set_transient_for (GTK_WINDOW (help_overlay), GTK_WINDOW (window));
gtk_shortcuts_window_set_window (help_overlay, GTK_WINDOW (window));