[gnome-boxes] libvirt-machine-properties: Update property on name change



commit 5972e464ac73572c8da35d0b023d58ad62513bd3
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri Aug 15 17:07:32 2014 +0200

    libvirt-machine-properties: Update property on name change
    
    This is necessary to keep the properties page's name entry and the title's
    name entry consistent.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692383

 src/libvirt-machine-properties.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index 54b2b15..8efba22 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -123,6 +123,12 @@ private class Boxes.LibvirtMachineProperties: GLib.Object, Boxes.IPropertiesProv
             property.changed.connect ((property, name) => {
                 return try_change_name (name);
             });
+
+            var name_property = property;
+            machine.notify["name"].connect (() => {
+                name_property.text = machine.name;
+            });
+
             add_string_property (ref list, _("Virtualizer"), machine.source.uri);
             if (machine.display != null)
                 property = add_string_property (ref list, _("URI"), machine.display.uri);


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