[xdg-desktop-portal-gnome/gbsneto/post-restore-screencast-cleanups: 1/17] screencastwidget: Simplify widgetry




commit a0ae0b7c236ed31b4daa35916b4d663853df4960
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Nov 13 20:22:45 2021 -0300

    screencastwidget: Simplify widgetry
    
    Remove the tons of stacks and notebooks and boxes above
    the actual list boxes.

 src/screencastwidget.ui | 70 ++++++++-----------------------------------------
 1 file changed, 11 insertions(+), 59 deletions(-)
---
diff --git a/src/screencastwidget.ui b/src/screencastwidget.ui
index 41da646..31cf3bb 100644
--- a/src/screencastwidget.ui
+++ b/src/screencastwidget.ui
@@ -39,40 +39,16 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkFrame">
-                        <property name="valign">start</property>
-                        <style>
-                          <class name="view"/>
-                        </style>
+                      <object class="GtkScrolledWindow" id="window_list_scrolled">
+                        <property name="propagate-natural-height">1</property>
+                        <property name="max-content-height">500</property>
                         <property name="child">
-                          <object class="GtkStack">
+                          <object class="GtkListBox" id="window_list">
                             <property name="hexpand">1</property>
                             <property name="vexpand">1</property>
-                            <property name="transition_type">crossfade</property>
-                            <child>
-                              <object class="GtkNotebook" id="window_notebook_view">
-                                <property name="show_tabs">0</property>
-                                <property name="show_border">0</property>
-                                <child>
-                                  <object class="GtkBox">
-                                    <property name="can_focus">0</property>
-                                    <property name="orientation">vertical</property>
-                                    <child>
-                                      <object class="GtkScrolledWindow" id="window_list_scrolled">
-                                        <property name="propagate-natural-height">1</property>
-                                        <property name="max-content-height">500</property>
-                                        <property name="child">
-                                          <object class="GtkListBox" id="window_list">
-                                            <property name="hexpand">1</property>
-                                            <property name="vexpand">1</property>
-                                          </object>
-                                        </property>
-                                      </object>
-                                    </child>
-                                  </object>
-                                </child>
-                              </object>
-                            </child>
+                            <style>
+                              <class name="content" />
+                            </style>
                           </object>
                         </property>
                       </object>
@@ -108,36 +84,12 @@
                       </object>
                     </child>
                     <child>
-                      <object class="GtkFrame">
-                        <property name="valign">start</property>
+                      <object class="GtkListBox" id="monitor_list">
+                        <property name="hexpand">1</property>
+                        <property name="vexpand">1</property>
                         <style>
-                          <class name="view"/>
+                          <class name="content" />
                         </style>
-                        <property name="child">
-                          <object class="GtkStack">
-                            <property name="hexpand">1</property>
-                            <property name="vexpand">1</property>
-                            <property name="transition_type">crossfade</property>
-                            <child>
-                              <object class="GtkNotebook" id="monitor_notebook_view">
-                                <property name="show_tabs">0</property>
-                                <property name="show_border">0</property>
-                                <child>
-                                  <object class="GtkBox">
-                                    <property name="can_focus">0</property>
-                                    <property name="orientation">vertical</property>
-                                    <child>
-                                      <object class="GtkListBox" id="monitor_list">
-                                        <property name="hexpand">1</property>
-                                        <property name="vexpand">1</property>
-                                      </object>
-                                    </child>
-                                  </object>
-                                </child>
-                              </object>
-                            </child>
-                          </object>
-                        </property>
                       </object>
                     </child>
                   </object>


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