[gnome-boxes] machine: Add 'can_save' property



commit eed7ee2ff7abc2f072ebdc573506319a2294cf36
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Nov 24 17:54:29 2012 +0200

    machine: Add 'can_save' property
    
    Add a boolean property to indicate if machine can save itself or not.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688980

 src/libvirt-machine.vala |    1 +
 src/machine.vala         |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index e11efaa..e35a2f2 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -58,6 +58,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
     construct {
         stats = new MachineStat[STATS_SIZE];
         stats_cancellable = new Cancellable ();
+        can_save = true;
     }
 
     private void update_domain_config () {
diff --git a/src/machine.vala b/src/machine.vala
index 9476593..97842a4 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -14,6 +14,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
     public string? status { get; set; }
     public bool suspend_at_exit;
 
+    public bool can_save { get; protected set; default = false; }
+
     public signal void got_error (string message);
 
     private ulong show_id;



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