summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Lundblad <ml@update.uu.se>2021-03-22 22:25:12 +0100
committerMarcus Lundblad <ml@update.uu.se>2021-03-24 23:04:26 +0100
commitc2199097bd1d5d167de3fcc72f6a824b1c1c0877 (patch)
tree48ab053264ba8c6c554d3ec570c32c5d412bb011
parentfd04b73b698dc916cb0afbf8c3bc6fe704b51011 (diff)
downloadgnome-maps-c2199097bd1d5d167de3fcc72f6a824b1c1c0877.tar.gz
headerBarRight: Mimimize use of child properties
Remove all redundant child properties. Child properties are gone in GTK4, and we should minimize their use to what's absolutely necessary in GTK3.
-rw-r--r--data/ui/headerbar-right.ui35
1 files changed, 13 insertions, 22 deletions
diff --git a/data/ui/headerbar-right.ui b/data/ui/headerbar-right.ui
index e2178a8a..dab5854e 100644
--- a/data/ui/headerbar-right.ui
+++ b/data/ui/headerbar-right.ui
@@ -8,26 +8,22 @@
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
- <object class="GtkToggleButton" id="toggleSidebarButton">
- <property name="visible">True</property>
+ <object class="GtkButton" id="printRouteButton">
+ <property name="name">print-route</property>
<property name="can-focus">True</property>
+ <property name="tooltip-text" translatable="yes" comments="Translators: This is a tooltip">Print Route</property>
+ <property name="action-name">win.print-route</property>
<property name="valign">center</property>
- <property name="action-name">win.toggle-sidebar</property>
- <property name="tooltip-text" translatable="yes" comments="Translators: This is a tooltip">Toggle route planner</property>
<style>
<class name="image-button"/>
</style>
<child>
- <object class="GtkImage" id="toggle-sidebar-button-image">
+ <object class="GtkImage" id="print-route-button-image">
<property name="visible">True</property>
- <property name="icon-size">1</property>
- <property name="icon-name">route-button-symbolic</property>
+ <property name="icon-name">document-print-symbolic</property>
</object>
</child>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
<child>
<object class="GtkMenuButton" id="favoritesButton">
@@ -46,30 +42,25 @@
</object>
</child>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
<child>
- <object class="GtkButton" id="printRouteButton">
- <property name="name">print-route</property>
+ <object class="GtkToggleButton" id="toggleSidebarButton">
+ <property name="visible">True</property>
<property name="can-focus">True</property>
- <property name="tooltip-text" translatable="yes" comments="Translators: This is a tooltip">Print Route</property>
- <property name="action-name">win.print-route</property>
<property name="valign">center</property>
+ <property name="action-name">win.toggle-sidebar</property>
+ <property name="tooltip-text" translatable="yes" comments="Translators: This is a tooltip">Toggle route planner</property>
<style>
<class name="image-button"/>
</style>
<child>
- <object class="GtkImage" id="print-route-button-image">
+ <object class="GtkImage" id="toggle-sidebar-button-image">
<property name="visible">True</property>
- <property name="icon-name">document-print-symbolic</property>
+ <property name="icon-size">1</property>
+ <property name="icon-name">route-button-symbolic</property>
</object>
</child>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
</template>
</interface>