[gnome-control-center/thunderbolt-fixups: 3/3] thunderbolt: Use AdwPreferencesGroup for devices list
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/thunderbolt-fixups: 3/3] thunderbolt: Use AdwPreferencesGroup for devices list
- Date: Tue, 1 Feb 2022 16:03:45 +0000 (UTC)
commit 6e28cc64c99a4843205e01de83686ffbf45b1c49
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Feb 1 16:42:31 2022 +0100
thunderbolt: Use AdwPreferencesGroup for devices list
Related: #1587
panels/thunderbolt/cc-bolt-panel.ui | 55 +++++++++++--------------------------
1 file changed, 16 insertions(+), 39 deletions(-)
---
diff --git a/panels/thunderbolt/cc-bolt-panel.ui b/panels/thunderbolt/cc-bolt-panel.ui
index 2809cc6ea..fda8e9c1a 100644
--- a/panels/thunderbolt/cc-bolt-panel.ui
+++ b/panels/thunderbolt/cc-bolt-panel.ui
@@ -331,52 +331,29 @@
<!-- Device List -->
<child>
- <object class="GtkBox" id="devices_box">
+ <object class="AdwPreferencesGroup" id="devices_box">
+ <property name="title" translatable="yes">Devices</property>
<property name="visible">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">12</property>
- <!-- Device List: Header -->
+
+ <!-- Device List: Devices -->
<child>
- <object class="GtkBox" id="devices_header">
- <property name="hexpand">True</property>
- <property name="halign">start</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel">
- <property name="label"
translatable="yes">Devices</property>
- <property name="xalign">0.0</property>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- </child>
- <child>
- <object class="GtkSpinner" id="probing_spinner">
- <property name="hexpand">True</property>
- </object>
- </child>
+ <object class="GtkListBox" id="devices_list">
+ <property name="selection-mode">none</property>
+ <property name="can_focus">True</property>
+ <signal name="row-activated"
+ handler="on_device_entry_row_activated_cb"
+ object="CcBoltPanel"
+ swapped="yes" />
+ <style>
+ <class name="boxed-list"/>
+ </style>
</object>
</child>
- <!-- Device List: Devices -->
<child>
- <object class="GtkFrame">
- <property name="valign">start</property>
- <property name="vexpand">False</property>
- <style>
- <class name="view" />
- </style>
- <child>
- <object class="GtkListBox" id="devices_list">
- <property name="selection-mode">none</property>
- <property name="can_focus">True</property>
- <signal name="row-activated"
- handler="on_device_entry_row_activated_cb"
- object="CcBoltPanel"
- swapped="yes" />
- </object>
- </child>
+ <object class="GtkSpinner" id="probing_spinner">
+ <property name="halign">start</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]