[nautilus/wip/coreyberla/app-chooser-fixes: 8/8] app-chooser: Put the AdwActionRow in a GtkListBox




commit b3fea10f29b51a34aee09be90fef343fcfae31ce
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 | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/src/resources/ui/nautilus-app-chooser.ui b/src/resources/ui/nautilus-app-chooser.ui
index b31a40b92..af0895b80 100644
--- a/src/resources/ui/nautilus-app-chooser.ui
+++ b/src/resources/ui/nautilus-app-chooser.ui
@@ -68,15 +68,19 @@
                           <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">
                             <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]