[gnome-boxes] machine: Add 'under_construction' property
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] machine: Add 'under_construction' property
- Date: Mon, 17 Jun 2013 10:40:58 +0000 (UTC)
commit 85ce5521e7cf2de053dff4e4fd7563d023ad97e0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Jun 16 08:27:28 2013 +0200
machine: Add 'under_construction' property
Add a property to indicate that a box is under construction (being
installed or imported).
src/libvirt-machine.vala | 1 +
src/machine.vala | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 54d0173..fb9436b 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -16,6 +16,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
set {
_vm_creator = value;
can_delete = !importing;
+ under_construction = (value != null);
}
}
// If this machine is currently being imported
diff --git a/src/machine.vala b/src/machine.vala
index f1aa497..7554701 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -16,6 +16,7 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
public bool can_save { get; protected set; default = false; }
public bool can_delete { get; protected set; default = true; }
+ public bool under_construction { get; protected set; default = false; }
public signal void got_error (string message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]