[libadwaita/wip/exalm/pref-window-toast: 1/3] preferences-window: Use AdwPreferencesPage for search
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/pref-window-toast: 1/3] preferences-window: Use AdwPreferencesPage for search
- Date: Thu, 11 Nov 2021 15:20:37 +0000 (UTC)
commit a5cbf818b6eb4df6b9d7ddad729653e1ef365bed
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Nov 11 19:53:56 2021 +0500
preferences-window: Use AdwPreferencesPage for search
Get rid of that huge selector.
src/adw-preferences-window.ui | 36 +++++++++++++-------------------
src/stylesheet/widgets/_preferences.scss | 1 -
2 files changed, 14 insertions(+), 23 deletions(-)
---
diff --git a/src/adw-preferences-window.ui b/src/adw-preferences-window.ui
index cc1dc6b8..7d57226f 100644
--- a/src/adw-preferences-window.ui
+++ b/src/adw-preferences-window.ui
@@ -108,30 +108,22 @@
<object class="GtkStackPage">
<property name="name">results</property>
<property name="child">
- <object class="GtkScrolledWindow" id="scrolled_window">
- <property name="hscrollbar_policy">never</property>
- <property name="child">
- <object class="GtkViewport">
- <property name="scroll-to-focus">True</property>
- <property name="child">
- <object class="AdwClamp">
- <child>
- <object class="GtkListBox" id="search_results">
- <property name="selection-mode">none</property>
- <property name="valign">start</property>
- <signal name="row-activated"
handler="search_result_activated_cb" swapped="yes"/>
- <signal name="map" handler="search_results_map" swapped="yes"/>
- <signal name="unmap" handler="search_results_unmap"
swapped="yes"/>
- <style>
- <class name="boxed-list"/>
- </style>
- </object>
- </child>
+ <object class="AdwPreferencesPage">
+ <child>
+ <object class="AdwPreferencesGroup">
+ <child>
+ <object class="GtkListBox" id="search_results">
+ <property name="selection-mode">none</property>
+ <property name="valign">start</property>
+ <signal name="row-activated" handler="search_result_activated_cb"
swapped="yes"/>
+ <signal name="map" handler="search_results_map" swapped="yes"/>
+ <signal name="unmap" handler="search_results_unmap" swapped="yes"/>
+ <style>
+ <class name="boxed-list"/>
+ </style>
</object>
- </property>
+ </child>
</object>
- </property>
- <child>
</child>
</object>
</property>
diff --git a/src/stylesheet/widgets/_preferences.scss b/src/stylesheet/widgets/_preferences.scss
index 2bea2a7b..15da2c22 100644
--- a/src/stylesheet/widgets/_preferences.scss
+++ b/src/stylesheet/widgets/_preferences.scss
@@ -1,4 +1,3 @@
-window.preferences > contents > leaflet > box > stack > stack > scrolledwindow > viewport > clamp > list,
preferencespage > scrolledwindow > viewport > clamp > box {
margin: 24px 12px;
border-spacing: 24px;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]