[xdg-desktop-portal-gnome/gbsneto/post-restore-screencast-cleanups: 3/17] screencastwidget: Bind stack page visibility




commit 1fddea577c4d6a29409f618f2fb1b2c4a9032c4a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Nov 13 21:29:16 2021 -0300

    screencastwidget: Bind stack page visibility
    
    Bind their visibility to their child's, so that the stack
    switcher doesn't get confused.

 src/screencastwidget.ui | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/screencastwidget.ui b/src/screencastwidget.ui
index 31cf3bb..c28dcbf 100644
--- a/src/screencastwidget.ui
+++ b/src/screencastwidget.ui
@@ -22,6 +22,7 @@
             <!-- Window selection page -->
             <child>
               <object class="GtkStackPage">
+                <property name="visible" bind-source="window_selection" bind-property="visible" 
bind-flags="sync-create"/>
                 <property name="name">windows_page</property>
                 <property name="title" translatable="yes">Single Window</property>
                 <property name="child">
@@ -61,6 +62,7 @@
             <!-- Physical monitor selection page -->
             <child>
               <object class="GtkStackPage">
+                <property name="visible" bind-source="monitor_selection" bind-property="visible" 
bind-flags="sync-create"/>
                 <property name="name">monitors_page</property>
                 <property name="title" translatable="yes">Entire Screen</property>
                 <property name="child">
@@ -100,6 +102,7 @@
             <!-- Virtual monitor selection page -->
             <child>
               <object class="GtkStackPage">
+                <property name="visible" bind-source="virtual_selection" bind-property="visible" 
bind-flags="sync-create"/>
                 <property name="name">virtual_page</property>
                 <property name="title" translatable="yes">Virtual monitor</property>
                 <property name="child">


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