[gnome-boxes/wip/show-ip: 7/9] libvirt-machine: IP as running machines' info



commit 64702bbb23ca73c877a15ec8f0ea7492d3410dce
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Jul 3 15:43:45 2015 +0100

    libvirt-machine: IP as running machines' info
    
    Set info property of running machines to it's IP address (which translates
    to 2nd text line in the collection view under the thumbnail).

 src/libvirt-machine.vala |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 49eaaf9..55b660e 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -709,8 +709,12 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
             info = _("Live");
         else if (VMConfigurator.is_import_config (domain_config))
             info = _("Importing…");
-        else
+        else {
             info = null;
+
+            var ip = get_ip_address ();
+            if (ip != null)
+                info = ip;
         }
     }
 


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