[totem] preferences-dialog: Remove GtkHButtonBox
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] preferences-dialog: Remove GtkHButtonBox
- Date: Wed, 21 Jul 2021 20:06:14 +0000 (UTC)
commit 315e3327472d1c18c4714673c4f51d82aa17e92f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Jun 30 21:38:50 2021 -0300
preferences-dialog: Remove GtkHButtonBox
This button box has a single child, a GtkButton, and
is effectively only used to horizontally align the
button at the end. This property can be trivially set
in the button itself nowadays.
Remove the GtkHButtonBox holding the "Reset to Defaults"
button, and preserve the end alignment of the button by
setting the "halign" to "end" in the button itself.
data/totem-preferences-dialog.ui | 29 ++++++++---------------------
1 file changed, 8 insertions(+), 21 deletions(-)
---
diff --git a/data/totem-preferences-dialog.ui b/data/totem-preferences-dialog.ui
index 92921a5d2..e29f057cd 100644
--- a/data/totem-preferences-dialog.ui
+++ b/data/totem-preferences-dialog.ui
@@ -707,28 +707,15 @@
</child>
<child>
- <object class="GtkHButtonBox" id="hbox23">
+ <object class="GtkButton" id="tpw_color_reset">
<property name="visible">True</property>
- <property name="homogeneous">False</property>
- <property name="spacing">0</property>
- <property name="layout_style">GTK_BUTTONBOX_END</property>
-
- <child>
- <object class="GtkButton" id="tpw_color_reset">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="label" translatable="yes">Reset to _Defaults</property>
- <property name="use_underline">True</property>
- <property name="relief">GTK_RELIEF_NORMAL</property>
- <property name="focus_on_click">True</property>
- <signal name="clicked" handler="tpw_color_reset_clicked_cb"
object="TotemPreferencesDialog" swapped="no"/>
- </object>
- <packing>
- <property name="padding">0</property>
- <property name="expand">False</property>
- <property name="fill">False</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="halign">end</property>
+ <property name="label" translatable="yes">Reset to _Defaults</property>
+ <property name="use_underline">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <signal name="clicked" handler="tpw_color_reset_clicked_cb"
object="TotemPreferencesDialog" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]