[xdg-desktop-portal-gnome/gbsneto/post-restore-screencast-cleanups: 10/19] screencastwidget: Move checkbox below the header




commit aa46f2d201e0feb838b9eee4550784ef180ad9a0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Nov 13 22:18:04 2021 -0300

    screencastwidget: Move checkbox below the header
    
    As per mockups, move checkbox to below the headers. This
    required adding separate checkboxes for each page, so keep
    them all synchronized with only one of them.

 src/screencastwidget.ui | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)
---
diff --git a/src/screencastwidget.ui b/src/screencastwidget.ui
index de1cb8f..94b6542 100644
--- a/src/screencastwidget.ui
+++ b/src/screencastwidget.ui
@@ -26,6 +26,16 @@
                     </attributes>
                   </object>
                 </child>
+
+                <!-- Persist permission -->
+                <child>
+                  <object class="GtkCheckButton" id="persist_check">
+                    <property name="active">True</property>
+                    <property name="halign">center</property>
+                    <property name="label" translatable="yes">Remember this selection</property>
+                  </object>
+                </child>
+
                 <child>
                   <object class="GtkScrolledWindow" id="window_list_scrolled">
                     <property name="propagate-natural-height">1</property>
@@ -65,6 +75,13 @@
                     </attributes>
                   </object>
                 </child>
+                <child>
+                  <object class="GtkCheckButton">
+                    <property name="active" bind-source="persist_check" bind-property="active" 
bind-flags="sync-create|bidirectional" />
+                    <property name="halign">center</property>
+                    <property name="label" translatable="yes">Remember this selection</property>
+                  </object>
+                </child>
                 <child>
                   <object class="GtkListBox" id="monitor_list">
                     <property name="hexpand">1</property>
@@ -102,6 +119,14 @@
                   </object>
                 </child>
 
+                <child>
+                  <object class="GtkCheckButton">
+                    <property name="active" bind-source="persist_check" bind-property="active" 
bind-flags="sync-create|bidirectional" />
+                    <property name="halign">center</property>
+                    <property name="label" translatable="yes">Remember this selection</property>
+                  </object>
+                </child>
+
                 <!-- Virtual monitor switch view -->
                 <child>
                   <object class="GtkBox">
@@ -133,13 +158,6 @@
       </object>
     </child>
 
-    <!-- Persist permission -->
-    <child>
-      <object class="GtkCheckButton" id="persist_check">
-        <property name="active">True</property>
-        <property name="label" translatable="yes">Remember this selection</property>
-      </object>
-    </child>
   </template>
 
   <object class="GtkStackSwitcher" id="source_type_switcher">


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