[gnome-boxes] Use title (not name) of machine everwhere in UI



commit dc5e6f8a1149fe19b09be27d587e46d8b6b37bca
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jun 12 17:55:55 2012 +0300

    Use title (not name) of machine everwhere in UI
    
    Should have been part of commit 91fe7f3.

 src/display-page.vala |    2 +-
 src/properties.vala   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 6556f73..e7a65e2 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -190,7 +190,7 @@ private class Boxes.DisplayPage: GLib.Object {
         var machine = App.app.current_item as Boxes.Machine;
         return_if_fail (machine != null);
 
-        var title = machine.name;
+        var title = machine.title;
         if (grabbed)
             title = _("%s <b>(press Ctrl+Alt keys to ungrab)</b>").printf (title);
 
diff --git a/src/properties.vala b/src/properties.vala
index 738c717..fb4bb96 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -228,7 +228,7 @@ private class Boxes.Properties: Boxes.UI {
 
         switch (ui_state) {
         case UIState.PROPERTIES:
-            toolbar_label_bind = App.app.current_item.bind_property ("name", toolbar_label, "label", BindingFlags.SYNC_CREATE);
+            toolbar_label_bind = App.app.current_item.bind_property ("title", toolbar_label, "label", BindingFlags.SYNC_CREATE);
             populate ();
             opacity = 255;
             break;



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