[gnome-boxes] machine: Only bind name to Topbar.status if current
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Only bind name to Topbar.status if current
- Date: Tue, 15 Sep 2015 23:09:57 +0000 (UTC)
commit 437f1faac98f22214455ab04b3e99f190472b280
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Sep 16 00:02:43 2015 +0100
machine: Only bind name to Topbar.status if current
Just cause the UI state is DISPLAY, doesn't mean every machine should
bind it's name to topbar status. Only current machine should do that.
https://bugzilla.gnome.org/show_bug.cgi?id=754419
src/machine.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 389a3ca..8863e71 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -577,7 +577,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
case Boxes.UIState.DISPLAY:
if (previous_ui_state == UIState.PROPERTIES)
window.below_bin.set_visible_child_name ("display-page");
- name_status_bind = bind_property ("name", this, "status", BindingFlags.SYNC_CREATE);
+ if (window.current_item == this)
+ name_status_bind = bind_property ("name", this, "status", BindingFlags.SYNC_CREATE);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]