[gnome-boxes] assistant, preferences: Add activatable-widget for switch rows



commit 0953c855acabc60fb3f9b7899ba1ddc73b3c48e4
Author: TheEvilSkeleton <theevilskeleton riseup net>
Date:   Thu Jul 7 14:42:07 2022 +0000

    assistant, preferences: Add activatable-widget for switch rows
    
    This makes it easier to activate switches by letting users to click on ActionRows.

 data/ui/assistant/pages/review-page.ui | 1 +
 data/ui/preferences/resources-page.ui  | 2 ++
 data/ui/unattended-setup-box.ui        | 1 +
 3 files changed, 4 insertions(+)
---
diff --git a/data/ui/assistant/pages/review-page.ui b/data/ui/assistant/pages/review-page.ui
index 5a115b62..072b366d 100644
--- a/data/ui/assistant/pages/review-page.ui
+++ b/data/ui/assistant/pages/review-page.ui
@@ -136,6 +136,7 @@ Check your BIOS settings to enable them.</property>
 
             <child>
               <object class="HdyActionRow" id="uefi_row">
+                <property name="activatable-widget">uefi_switch</property>
                 <property name="visible">False</property>
                 <property name="title" translatable="yes">Enable EFI</property>
 
diff --git a/data/ui/preferences/resources-page.ui b/data/ui/preferences/resources-page.ui
index ed64c9e8..95f97ec6 100644
--- a/data/ui/preferences/resources-page.ui
+++ b/data/ui/preferences/resources-page.ui
@@ -100,6 +100,7 @@
 
         <child>
           <object class="HdyActionRow" id="acceleration_3d_row">
+            <property name="activatable-widget">acceleration_3d_toggle</property>
             <property name="visible">True</property>
             <property name="activatable">False</property>
             <property name="title" translatable="yes">3D acceleration</property>
@@ -122,6 +123,7 @@
 
         <child>
           <object class="HdyActionRow">
+            <property name="activatable-widget">run_in_bg_toggle</property>
             <property name="visible">True</property>
             <property name="activatable">False</property>
             <property name="title" translatable="yes">Allow running in background</property>
diff --git a/data/ui/unattended-setup-box.ui b/data/ui/unattended-setup-box.ui
index 03d96ec4..712e9b64 100644
--- a/data/ui/unattended-setup-box.ui
+++ b/data/ui/unattended-setup-box.ui
@@ -48,6 +48,7 @@
 
             <child>
               <object class="HdyActionRow">
+                <property name="activatable-widget">express_toggle</property>
                 <property name="visible">True</property>
                 <property name="title" translatable="yes" comments="Translators: 'Express Install' means 
that the new box installation will be fully automated, the user won't be asked anything while it's 
performed.">Express Install</property>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]