[gnome-boxes] Correctly set item state back to COLLECTION



commit e81bf67afe35296be7af9c291313d5b225e490a5
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date:   Mon Oct 10 20:48:01 2011 +0200

    Correctly set item state back to COLLECTION

 src/collection-view.vala |    2 +-
 src/display.vala         |    4 ----
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 2ce0819..24dfc9c 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -81,7 +81,7 @@ private class Boxes.CollectionView: Boxes.UI {
         if (item is Machine) {
             var machine = item as Machine;
 
-            machine.machine_actor.ui_state = UIState.COLLECTION;
+            machine.ui_state = UIState.COLLECTION;
             actor_add (machine.actor, boxes);
         } else
             warning ("Cannot add item %p".printf (&item));
diff --git a/src/display.vala b/src/display.vala
index 4a05fa1..713aa35 100644
--- a/src/display.vala
+++ b/src/display.vala
@@ -14,8 +14,4 @@ private abstract class Boxes.Display: GLib.Object {
     construct {
         displays = new HashTable<int, Gtk.Widget> (direct_hash, direct_equal);
     }
-
-    ~Boxes () {
-        disconnect_it ();
-    }
 }



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