[gnome-boxes] snapshots-prop: Create frame before its first use



commit d9d9f00f3d23ffd07d0582b19530ab4885228b53
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Feb 24 13:37:12 2015 +0000

    snapshots-prop: Create frame before its first use
    
    A tiny bit more re-ordering of UI initialization to make it further
    easier to follow the code.

 src/snapshots-property.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/snapshots-property.vala b/src/snapshots-property.vala
index 13f41c7..0237122 100644
--- a/src/snapshots-property.vala
+++ b/src/snapshots-property.vala
@@ -46,8 +46,6 @@ private class Boxes.SnapshotsProperty : Boxes.Property {
         create_snapshot_button.icon_widget = icon_img;
         toolbar.add (create_snapshot_button);
 
-        var snapshot_list_frame = new Gtk.Frame (null);
-
         snapshot_stack = new Gtk.Stack ();
         empty_label = new Gtk.Label (_("No snapshots created yet. Create one using the button below."));
         empty_label.expand = true;
@@ -63,6 +61,7 @@ private class Boxes.SnapshotsProperty : Boxes.Property {
         snapshot_list.remove.connect (update_snapshot_stack_page);
         snapshot_stack.add (snapshot_list);
 
+        var snapshot_list_frame = new Gtk.Frame (null);
         snapshot_list_frame.add (snapshot_stack);
         snapshot_box.pack_start (snapshot_list_frame, true, true);
         snapshot_box.pack_start (toolbar, true, true);


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