[gnome-boxes] wizard-source: Only make target entries visible



commit cdd17bc3750083354eaee3c5302efc9e81c9ad04
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Mar 25 17:09:50 2014 +0000

    wizard-source: Only make target entries visible
    
    To make media entries and system libvirt import button visible, we were
    making their parent main_vbox and all its chilren visible. Thats not the
    right thing to do and I believe was only a workaround for some weird
    clutter-gtk or gtk+ bug that doesn't seem to be needed anymore.
    
    This fixes the issue of 'Import 0 boxes from system broker' button
    showing up in the wizard.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726970

 data/ui/wizard-media-entry.ui |    1 +
 src/wizard-source.vala        |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/wizard-media-entry.ui b/data/ui/wizard-media-entry.ui
index 09f9249..0c4ee6a 100644
--- a/data/ui/wizard-media-entry.ui
+++ b/data/ui/wizard-media-entry.ui
@@ -2,6 +2,7 @@
 <interface>
   <!-- interface-requires gtk+ 3.9 -->
   <template class="BoxesWizardMediaEntry" parent="GtkButton">
+    <property name="visible">True</property>
     <style>
       <class name="boxes-menu-row"/>
     </style>
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index a228d97..0cecb52 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -239,7 +239,6 @@ private class Boxes.WizardSource: Gtk.Stack {
             selected = entry;
         });
 
-        media_vbox.show_all ();
         media_scrolled.show ();
     }
 
@@ -252,7 +251,7 @@ private class Boxes.WizardSource: Gtk.Stack {
             return;
         }
         libvirt_sys_import_label.label = libvirt_sys_importer.wizard_menu_label;
-        main_vbox.show_all ();
+        libvirt_sys_import_button.show_all ();
     }
 
     [GtkCallback]


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