[gnome-control-center/permissions-printers] printers: Show the CcPermissionInfobar for all views



commit 1a18a45d4e071eaccaedcda1fa6e85b93f0fdbd9
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Feb 24 11:00:11 2020 +0100

    printers: Show the CcPermissionInfobar for all views
    
    We were only presenting the permission infobar when there were
    already printers added (printer-list view).
    
    We also want users to see the infobar when they don't have any
    printers (empty-page).

 panels/printers/printers.ui | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/panels/printers/printers.ui b/panels/printers/printers.ui
index 136c31229..228eeac29 100644
--- a/panels/printers/printers.ui
+++ b/panels/printers/printers.ui
@@ -75,6 +75,16 @@
   </child>
   <child>
 
+<object class="GtkBox">
+  <property name="visible">True</property>
+  <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
+  <child>
+    <object class="CcPermissionInfobar" id="permission-infobar">
+      <property name="visible">True</property>
+    </object>
+  </child>
+  <child>
+
   <object class="GtkStack" id="main-vbox">
     <child>
       <object class="GtkBox">
@@ -95,11 +105,6 @@
       <object class="GtkBox">
         <property name="visible">True</property>
         <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
-        <child>
-          <object class="CcPermissionInfobar" id="permission-infobar">
-            <property name="visible">True</property>
-          </object>
-        </child>
         <child>
           <object class="GtkSearchBar" id="search-bar">
             <property name="visible">True</property>
@@ -255,6 +260,8 @@ doesn’t seem to be available.</property>
       </packing>
     </child>
   </object>
+</child>
+</object>
 
   </child>
 </object>


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