[devhelp] Window: move New Tab action as a button in the headerbar
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Window: move New Tab action as a button in the headerbar
- Date: Sat, 3 Jun 2017 13:01:06 +0000 (UTC)
commit f07f4bada6d0a68b2f2828e1f1b5a47518a7078b
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jun 3 14:50:49 2017 +0200
Window: move New Tab action as a button in the headerbar
- Remove 'New Tab' from the hamburger menu.
- Add 'New Tab' button in the headerbar, on the left side, after the
back/forward buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=779386
src/dh-window.ui | 33 ++++++++++++++++++++++-----------
1 files changed, 22 insertions(+), 11 deletions(-)
---
diff --git a/src/dh-window.ui b/src/dh-window.ui
index 521b7ab..62837ad 100644
--- a/src/dh-window.ui
+++ b/src/dh-window.ui
@@ -4,11 +4,6 @@
<menu id="gear_menu">
<section>
<item>
- <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>
@@ -52,12 +47,6 @@
<attribute name="action">app.new-window</attribute>
<attribute name="accel"><Primary>n</attribute>
</item>
- <item>
- <attribute name="label" translatable="yes">New _Tab</attribute>
- <attribute name="action">win.new-tab</attribute>
- <attribute name="accel"><Primary>t</attribute>
- <attribute name="use-underline">True</attribute>
- </item>
</section>
<section>
<item>
@@ -174,6 +163,28 @@
</packing>
</child>
<child>
+ <object class="GtkButton" id="new_tab_button">
+ <property name="visible">True</property>
+ <property name="valign">center</property>
+ <property name="can_focus">False</property>
+ <property name="tooltip_text" translatable="yes">New Tab</property>
+ <property name="action_name">win.new-tab</property>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child>
+ <object class="GtkImage" id="new_tab_button_image">
+ <property name="visible">True</property>
+ <property name="icon_size">1</property>
+ <property name="icon_name">tab-new-symbolic</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack_type">start</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkMenuButton" id="gear_menu_button">
<property name="visible">True</property>
<property name="valign">center</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]