[dconf-editor] Disable Help overlay on small screen.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Disable Help overlay on small screen.
- Date: Thu, 22 Nov 2018 12:35:55 +0000 (UTC)
commit 867ea757787f77586d15efeb4472275dbcbe2598
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Nov 15 21:25:53 2018 +0100
Disable Help overlay on small screen.
editor/browser-headerbar.vala | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/editor/browser-headerbar.vala b/editor/browser-headerbar.vala
index 32d2bdb..9e65324 100644
--- a/editor/browser-headerbar.vala
+++ b/editor/browser-headerbar.vala
@@ -370,7 +370,7 @@ private class BrowserHeaderBar : HeaderBar, AdaptativeWidget
if (!in_window_bookmarks)
append_or_not_delay_mode_section (delay_mode, current_type == ViewType.FOLDER, current_path, ref
menu);
- append_app_actions_section (night_time, dark_theme, automatic_night_mode, ref menu);
+ append_app_actions_section (night_time, dark_theme, automatic_night_mode, extra_small_window, ref
menu);
menu.freeze ();
info_button.set_menu_model ((MenuModel) menu);
@@ -413,11 +413,12 @@ private class BrowserHeaderBar : HeaderBar, AdaptativeWidget
menu.append_section (null, section);
}
- private static void append_app_actions_section (bool night_time, bool dark_theme, bool auto_night, ref
GLib.Menu menu)
+ private static void append_app_actions_section (bool night_time, bool dark_theme, bool auto_night, bool
extra_small_window, ref GLib.Menu menu)
{
GLib.Menu section = new GLib.Menu ();
append_or_not_night_mode_entry (night_time, dark_theme, auto_night, ref section);
- section.append (_("Keyboard Shortcuts"), "win.show-help-overlay");
+ if (!extra_small_window) // TODO else...
+ section.append (_("Keyboard Shortcuts"), "win.show-help-overlay");
section.append (_("About Dconf Editor"), "app.about"); // TODO move as "win."
section.freeze ();
menu.append_section (null, section);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]