[gnome-boxes] machine: Add 'is_stopped' prop
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Add 'is_stopped' prop
- Date: Tue, 7 Jul 2015 21:43:15 +0000 (UTC)
commit 292855aea51bb53c38d9c66771134c5d05967311
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jul 2 16:11:18 2015 +0200
machine: Add 'is_stopped' prop
This is be needed by next commits to easily check if a machine is
stopped to draw a special thumbnail for them.
https://bugzilla.gnome.org/show_bug.cgi?id=730258
src/machine.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 53ef20e..c323cc3 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -48,6 +48,12 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
}
}
+ public bool is_stopped {
+ get {
+ return state == Machine.MachineState.FORCE_STOPPED || state == Machine.MachineState.STOPPED;
+ }
+ }
+
private ulong show_id;
private ulong hide_id;
private ulong disconnected_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]