diff options
author | Robert Roth <robert.roth.off@gmail.com> | 2018-08-24 14:39:00 +0300 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2018-08-24 14:39:00 +0300 |
commit | ad5134a4c55fc8bdecebce72e0c69dce3e3896b0 (patch) | |
tree | cd25bb377baf4c1f3984b79f52bc8e2ad0e311b9 | |
parent | 9e0f43e8cba45015487c692058c002f56087b9b8 (diff) | |
download | gtk+-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.c | 2 |
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)); |