[nautilus/wip/coreyberla/app-chooser-fixes: 15/16] app-chooser: Put the AdwActionRow in a GtkListBox
- From: Corey Berla <coreyberla src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/coreyberla/app-chooser-fixes: 15/16] app-chooser: Put the AdwActionRow in a GtkListBox
- Date: Mon, 8 Aug 2022 21:37:55 +0000 (UTC)
commit 03871cad3bbaba712af271bf618f3bf32eac42ac
Author: Corey Berla <corey berla me>
Date: Mon Aug 8 10:54:50 2022 -0700
app-chooser: Put the AdwActionRow in a GtkListBox
eac32fcad6dc829a6388a7cc78a189dc83844a85 added an action row which
inherits from a GtkListBoxRow without putting it in a GtkListBox
(or something that inherits from GtkListBox like AdwPerferencesGroup).
This caused the activatable-widget not to work. Put the row in a
GtkListBox since we don't want any of the other styles from Adw
src/resources/ui/nautilus-app-chooser.ui | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
---
diff --git a/src/resources/ui/nautilus-app-chooser.ui b/src/resources/ui/nautilus-app-chooser.ui
index b31a40b92..e30beacdf 100644
--- a/src/resources/ui/nautilus-app-chooser.ui
+++ b/src/resources/ui/nautilus-app-chooser.ui
@@ -68,15 +68,22 @@
<object class="GtkSeparator"/>
</child>
<child>
- <object class="AdwActionRow" id="set_default_row">
- <property name="hexpand">true</property>
- <property name="selectable">false</property>
- <property name="activatable-widget">set_as_default_switch</property>
- <property name="title" translatable="yes">Always use for this file
type</property>
+ <object class="GtkListBox">
+ <style>
+ <class name="background"/>
+ </style>
<child>
- <object class="GtkSwitch" id="set_as_default_switch">
- <property name="halign">end</property>
- <property name="valign">center</property>
+ <object class="AdwActionRow" id="set_default_row">
+ <property name="hexpand">true</property>
+ <property name="selectable">false</property>
+ <property name="activatable-widget">set_as_default_switch</property>
+ <property name="title" translatable="yes">Always use for this file
type</property>
+ <child>
+ <object class="GtkSwitch" id="set_as_default_switch">
+ <property name="halign">end</property>
+ <property name="valign">center</property>
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]