[nautilus/action-info-bar-non-flat] action-bar: Adjust margins and spacings
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/action-info-bar-non-flat] action-bar: Adjust margins and spacings
- Date: Mon, 9 Apr 2018 21:49:40 +0000 (UTC)
commit de9a9237a9af7163ec674f3dc261c8308586bcee
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Apr 9 23:47:10 2018 +0200
action-bar: Adjust margins and spacings
src/resources/ui/nautilus-action-bar.ui | 49 +++++++++++++++++++++++++++------
1 file changed, 41 insertions(+), 8 deletions(-)
---
diff --git a/src/resources/ui/nautilus-action-bar.ui b/src/resources/ui/nautilus-action-bar.ui
index 8bda688bf..f9f57e933 100644
--- a/src/resources/ui/nautilus-action-bar.ui
+++ b/src/resources/ui/nautilus-action-bar.ui
@@ -9,8 +9,8 @@
<object class="GtkStack" id="stack">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">4</property>
- <property name="margin_right">4</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">4</property>
<property name="margin_top">4</property>
<property name="margin_bottom">4</property>
<property name="hexpand">True</property>
@@ -19,6 +19,7 @@
<object class="NautilusActionBarBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">24</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
@@ -70,10 +71,11 @@
</packing>
</child>
<child>
- <object class="GtkButton">
+ <object class="GtkMenuButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="menu_model">selection-menu</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -182,8 +184,6 @@
<property name="width_request">180</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">10</property>
- <property name="margin_right">24</property>
<child>
<object class="GtkLabel" id="primary_label">
<property name="visible">True</property>
@@ -244,7 +244,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
- <property name="margin_left">10</property>
<property name="spacing">4</property>
<child>
<object class="GtkSpinner">
@@ -306,15 +305,18 @@
<object class="NautilusActionBarBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">24</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">4</property>
<child>
- <object class="GtkButton">
+ <object class="GtkMenuButton">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="menu_model">selection-menu</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -412,7 +414,6 @@
<property name="width_request">180</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">10</property>
<child>
<placeholder/>
</child>
@@ -442,4 +443,36 @@
</packing>
</child>
</template>
+ <menu id="selection-menu">
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Open in New Window</attribute>
+ <attribute name="action">view.open-item-new-window</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Open in New Tab</attribute>
+ <attribute name="action">view.open-item-new-tab</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Copy To…</attribute>
+ <attribute name="action">view.copy-to</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">Move To…</attribute>
+ <attribute name="action">view.move-to</attribute>
+ </item>
+ <item>
+ <attribute name="label" translatable="yes">New Folder With Selection…</attribute>
+ <attribute name="action">view.new-folder-with-selection</attribute>
+ </item>
+ </section>
+ <section>
+ <item>
+ <attribute name="label" translatable="yes">Properties</attribute>
+ <attribute name="action">view.properties</attribute>
+ </item>
+ </section>
+ </menu>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]