[gnome-bluetooth] settings-row: Use a GtkBox internally
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] settings-row: Use a GtkBox internally
- Date: Thu, 28 Oct 2021 15:29:59 +0000 (UTC)
commit fe087fb7870706dbc6aa2714a16e761f969a629a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 27 15:44:39 2021 -0300
settings-row: Use a GtkBox internally
Instead of dealing with the <packing> properties, merely replace the
internal grid by a box, and cleanup all <packing> properties along
the way.
lib/bluetooth-settings-row.ui | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/lib/bluetooth-settings-row.ui b/lib/bluetooth-settings-row.ui
index b21b76ac..ef94ce05 100644
--- a/lib/bluetooth-settings-row.ui
+++ b/lib/bluetooth-settings-row.ui
@@ -6,7 +6,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
- <object class="GtkGrid" id="grid1">
+ <object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_start">20</property>
@@ -25,37 +25,25 @@
<property name="ellipsize">end</property>
<property name="xalign">0</property>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
- <object class="GtkLabel" id="status">
- <property name="visible">True</property>
+ <object class="GtkSpinner" id="spinner">
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
- <property name="vexpand">True</property>
- <property name="label" translatable="yes">Not Set Up</property>
+ <property name="margin_start">0</property>
+ <property name="margin_end">0</property>
</object>
- <packing>
- <property name="left_attach">2</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
- <object class="GtkSpinner" id="spinner">
+ <object class="GtkLabel" id="status">
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="valign">center</property>
- <property name="margin_start">0</property>
- <property name="margin_end">0</property>
+ <property name="vexpand">True</property>
+ <property name="label" translatable="yes">Not Set Up</property>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]