alarm-row: Remove GtkBox

Uses valign in all buttons, instead of using GtkBox
This commit is contained in:
Hari Rana
2023-12-14 00:11:56 +00:00
committed by Jean-François Fortin Tam
parent de0ad92bc7
commit 57cb3a7650
+18 -22
View File
@@ -2,29 +2,25 @@
<interface>
<template class="GcalAlarmRow" parent="AdwActionRow">
<child>
<object class="GtkBox">
<object class="GtkToggleButton" id="volume_button">
<property name="valign">center</property>
<property name="spacing">6</property>
<child>
<object class="GtkToggleButton" id="volume_button">
<property name="icon-name">audio-volume-high-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggles the sound of the alarm</property>
<signal name="notify::active" handler="on_sound_toggle_changed_cb" object="GcalAlarmRow" swapped="no" />
<style>
<class name="flat" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="remove_button">
<property name="icon-name">edit-delete-symbolic</property>
<property name="tooltip-text" translatable="yes">Remove the alarm</property>
<signal name="clicked" handler="on_remove_button_clicked_cb" object="GcalAlarmRow" swapped="no" />
<style>
<class name="flat" />
</style>
</object>
</child>
<property name="icon-name">audio-volume-high-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggles the sound of the alarm</property>
<signal name="notify::active" handler="on_sound_toggle_changed_cb" object="GcalAlarmRow" swapped="no" />
<style>
<class name="flat" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="remove_button">
<property name="valign">center</property>
<property name="icon-name">edit-delete-symbolic</property>
<property name="tooltip-text" translatable="yes">Remove the alarm</property>
<signal name="clicked" handler="on_remove_button_clicked_cb" object="GcalAlarmRow" swapped="no" />
<style>
<class name="flat" />
</style>
</object>
</child>
</template>