[gnome-boxes] snapshots-prop: Add label to stack, after list



commit 86462a4f97dbb5de52bb94277b49cd15747313e7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 24 13:40:00 2015 +0000

    snapshots-prop: Add label to stack, after list
    
    Otherwise we get a warning on the console for setting the visible child of
    stack to label, which is removed before the list (being the first child).

 src/snapshots-property.vala |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/snapshots-property.vala b/src/snapshots-property.vala
index 0237122..4053f5c 100644
--- a/src/snapshots-property.vala
+++ b/src/snapshots-property.vala
@@ -47,11 +47,6 @@ private class Boxes.SnapshotsProperty : Boxes.Property {
         toolbar.add (create_snapshot_button);
 
         snapshot_stack = new Gtk.Stack ();
-        empty_label = new Gtk.Label (_("No snapshots created yet. Create one using the button below."));
-        empty_label.expand = true;
-        empty_label.halign = Gtk.Align.CENTER;
-        empty_label.valign = Gtk.Align.CENTER;
-        snapshot_stack.add (empty_label);
 
         snapshot_stack.transition_type = Gtk.StackTransitionType.CROSSFADE;
         snapshot_list.selection_mode = Gtk.SelectionMode.NONE;
@@ -61,6 +56,12 @@ private class Boxes.SnapshotsProperty : Boxes.Property {
         snapshot_list.remove.connect (update_snapshot_stack_page);
         snapshot_stack.add (snapshot_list);
 
+        empty_label = new Gtk.Label (_("No snapshots created yet. Create one using the button below."));
+        empty_label.expand = true;
+        empty_label.halign = Gtk.Align.CENTER;
+        empty_label.valign = Gtk.Align.CENTER;
+        snapshot_stack.add (empty_label);
+
         var snapshot_list_frame = new Gtk.Frame (null);
         snapshot_list_frame.add (snapshot_stack);
         snapshot_box.pack_start (snapshot_list_frame, true, true);


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