[gnome-boxes/wip/show-ip: 9/9] libvirt-machine-props: Show IP on 'General' page



commit 0da39467ad3689752e0dd84777a642c44a92673e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Jul 3 18:25:25 2015 +0100

    libvirt-machine-props: Show IP on 'General' page
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744004

 src/libvirt-machine-properties.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 3e81926..4299804 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -125,6 +125,10 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
                 name_property.text = machine.name;
             });
 
+            var ip = machine.get_ip_address ();
+            if (ip != null)
+                add_string_property (ref list, _("IP Address"), ip);
+
             add_string_property (ref list, _("Broker"), machine.source.name);
             if (machine.display != null) {
                 add_string_property (ref list, _("Display Protocol"), machine.display.protocol);


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