[dconf-editor] Allow show-bookmarks shortcut on small window.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Allow show-bookmarks shortcut on small window.
- Date: Wed, 14 Nov 2018 13:48:58 +0000 (UTC)
commit 3873ef484837c785dfff902b39be891f60a70fe7
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Oct 21 08:21:42 2018 +0200
Allow show-bookmarks shortcut on small window.
editor/browser-view.vala | 2 +-
editor/dconf-window.vala | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index 6faf679..b53e186 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -202,7 +202,7 @@ private class BrowserView : Stack, AdaptativeWidget
* * bookmarks
\*/
- private bool in_window_bookmarks = false;
+ internal bool in_window_bookmarks { internal get; private set; default = false; }
[GtkChild] private BookmarksList bookmarks_list;
[GtkChild] private Grid current_child_grid;
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 35a0bf4..e8a4e2e 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -1052,7 +1052,12 @@ private class DConfWindow : ApplicationWindow
private void toggle_bookmark (/* SimpleAction action, Variant? variant */)
{
browser_view.discard_row_popover ();
- headerbar.click_bookmarks_button ();
+ if (!extra_small_window)
+ headerbar.click_bookmarks_button ();
+ else if (browser_view.in_window_bookmarks)
+ hide_in_window_bookmarks ();
+ else
+ show_in_window_bookmarks ();
}
private void copy_path (/* SimpleAction action, Variant? path_variant */)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]