project: Simplify buttons

GtkButton has an 'icon-name' property that greatly simplifies
setting up buttons. GtkMenuButton has a new 'always-show-arrow'
property that also allows us to simplify some code.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 15:43:57 -03:00
parent c9f8bb22f6
commit 8560ca0677
3 changed files with 13 additions and 43 deletions

View file

@ -103,25 +103,7 @@
<property name="valign">center</property>
<property name="direction">right</property>
<property name="popover">oars_popover</property>
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<child>
<object class="GtkLabel" id="oars_button_label">
<property name="label"></property>
<property name="expand">True</property>
<property name="halign">start</property>
<property name="xalign">0.0</property>
</object>
</child>
<child>
<object class="GtkImage">
<property name="icon-name">pan-down-symbolic</property>
<property name="icon-size">4</property><!-- GTK_ICON_SIZE_BUTTON -->
</object>
</child>
</object>
</child>
<property name="always-show-arrow">True</property>
</object>
</child>
</object>