[gnome-boxes] machine: Set launch status directly to topbar
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Set launch status directly to topbar
- Date: Tue, 15 Sep 2015 23:09:52 +0000 (UTC)
commit 1cf5647bee030d71cf4431dd26241db6db426f34
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Sep 15 18:01:56 2015 +0100
machine: Set launch status directly to topbar
The launch status strings are only useful for topbar. Moreover, the way
they currently are, they look ugly in collection views and don't even
fit in the space available. So let's just set these labels directly on
the topbar, instead of going through Machine.status property.
https://bugzilla.gnome.org/show_bug.cgi?id=754419
src/libvirt-machine.vala | 4 ++--
src/machine.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index d9ec8a1..9bb2580 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -585,10 +585,10 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
!(Machine.ConnectFlags.IGNORE_SAVED_STATE in flags);
if (restore)
// Translators: The %s will be expanded with the name of the vm
- status = _("Restoring %s from disk").printf (name);
+ window.topbar.status = _("Restoring %s from disk").printf (name);
else
// Translators: The %s will be expanded with the name of the vm
- status = _("Starting %s").printf (name);
+ window.topbar.status = _("Starting %s").printf (name);
try {
yield domain.start_async (connect_flags_to_gvir (flags), cancellable);
} catch (IOError.CANCELLED error) {
diff --git a/src/machine.vala b/src/machine.vala
index 5fd978a..389a3ca 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -192,7 +192,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
return;
// Translators: The %s will be expanded with the name of the vm
- status = _("Connecting to %s").printf (name);
+ window.topbar.status = _("Connecting to %s").printf (name);
show_id = _display.show.connect ((id) => { show_display (); });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]