[gnome-software: 5/18] gs-details-page: Hide layout boxes if their contents are hidden




commit 865e7160abb4b75c9181f432fcc97d8c1c1f2397
Author: Philip Withnall <pwithnall endlessos org>
Date:   Mon Jul 26 15:01:05 2021 +0100

    gs-details-page: Hide layout boxes if their contents are hidden
    
    This eliminates the spacing between the empty boxes, which was causing a
    large and jarring visual gap.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>
    
    Helps: #1285

 src/gs-details-page.ui | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-details-page.ui b/src/gs-details-page.ui
index e9873c754..ee9f7886c 100644
--- a/src/gs-details-page.ui
+++ b/src/gs-details-page.ui
@@ -461,7 +461,7 @@
 
                     <child>
                       <object class="GsFixedSizeBin">
-                        <property name="visible">True</property>
+                        <property name="visible" bind-source="label_webapp_warning" bind-property="visible" 
bind-flags="sync-create"/>
                         <property name="preferred-width">860</property>
                         <child>
                           <object class="GtkLabel" id="label_webapp_warning">
@@ -481,7 +481,7 @@
 
                     <child>
                       <object class="GsFixedSizeBin">
-                        <property name="visible">True</property>
+                        <property name="visible" bind-source="infobar_details_app_repo" 
bind-property="visible" bind-flags="sync-create"/>
                         <property name="preferred-width">860</property>
                         <child>
                           <object class="GsInfoBar" id="infobar_details_app_repo">
@@ -496,7 +496,7 @@
 
                     <child>
                       <object class="GsFixedSizeBin">
-                        <property name="visible">True</property>
+                        <property name="visible" bind-source="infobar_details_app_norepo" 
bind-property="visible" bind-flags="sync-create"/>
                         <property name="preferred-width">860</property>
                         <child>
                           <object class="GsInfoBar" id="infobar_details_app_norepo">
@@ -511,7 +511,7 @@
 
                     <child>
                       <object class="GsFixedSizeBin">
-                        <property name="visible">True</property>
+                        <property name="visible" bind-source="infobar_details_package_baseos" 
bind-property="visible" bind-flags="sync-create"/>
                         <property name="preferred-width">860</property>
                         <child>
                           <object class="GsInfoBar" id="infobar_details_package_baseos">
@@ -526,7 +526,7 @@
 
                     <child>
                       <object class="GsFixedSizeBin">
-                        <property name="visible">True</property>
+                        <property name="visible" bind-source="infobar_details_repo" bind-property="visible" 
bind-flags="sync-create"/>
                         <property name="preferred-width">860</property>
                         <child>
                           <object class="GsInfoBar" id="infobar_details_repo">


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