[devhelp] Add sidebar toggler to the menu
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Add sidebar toggler to the menu
- Date: Fri, 30 Sep 2016 20:27:00 +0000 (UTC)
commit c46c1f237da83afbc2246cf36f822a2fdfe3e684
Author: Miguel Vaello MartÃnez <miguel vaellomartinez gmail com>
Date: Sun May 8 16:49:12 2016 +0200
Add sidebar toggler to the menu
As the hide/show sidebar shortcut already exists, it makes
sense to have this option to select in the menu in order to
toggle the sidebar visibility easily.
https://bugzilla.gnome.org/show_bug.cgi?id=763518
src/dh-window.c | 2 +-
src/dh-window.ui | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 1e8e555..d72140a 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -521,7 +521,7 @@ static GActionEntry win_entries[] = {
{ "find-next", find_next_cb },
/* view */
- { "show-sidebar", NULL, NULL, "false", show_sidebar_cb },
+ { "show-sidebar", NULL, NULL, "true", show_sidebar_cb },
{ "zoom-in", zoom_in_cb },
{ "zoom-out", zoom_out_cb },
{ "zoom-default", zoom_default_cb },
diff --git a/src/dh-window.ui b/src/dh-window.ui
index 8b68234..2ec8923 100644
--- a/src/dh-window.ui
+++ b/src/dh-window.ui
@@ -7,6 +7,11 @@
<attribute name="label" translatable="yes">New _Tab</attribute>
<attribute name="action">win.new-tab</attribute>
<attribute name="accel"><Primary>t</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Side _Panel</attribute>
+ <attribute name="action">win.show-sidebar</attribute>
+ <attribute name="accel">F9</attribute>
<attribute name="use-underline">True</attribute>
</item>
</section>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]