[gnome-boxes] Act on addition of domains on libvirt connection



commit 4645b702307e00c535ba96a4bc756698445d0b76
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Oct 27 18:45:26 2011 +0300

    Act on addition of domains on libvirt connection

 src/app.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index a3ad99e..27ba436 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -70,6 +70,11 @@ private class Boxes.App: Boxes.UI {
             collection.add_item (machine);
         }
 
+        connection.domain_added.connect ((connection, domain) => {
+            var machine = new LibvirtMachine (source, this, connection, domain);
+            collection.add_item (machine);
+        });
+
         connections.replace (source.uri, connection);
     }
 



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