[gnome-boxes] machine: Turn 'deleted' into a property



commit 353bdee2d216ed7e86e45790d1f45ec95a24bfb0
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Sep 4 14:08:47 2014 +0100

    machine: Turn 'deleted' into a property
    
    This is so that we can easily listen to a machine (of interest) getting
    deleted from other modules.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735045

 src/machine.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 14d87e7..a0593cc 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -85,6 +85,8 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
         set { _window = value; }
     }
 
+    public bool deleted { get; private set; }
+
     protected void show_display () {
 
         switch (window.ui_state) {
@@ -497,7 +499,6 @@ private abstract class Boxes.Machine: Boxes.CollectionItem, Boxes.IPropertiesPro
         return Gdk.pixbuf_get_from_surface (surface, 0, 0, width, height);
     }
 
-    public bool deleted;
     public virtual void delete (bool by_user = true) {
         deleted = true;
 


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