[gnome-boxes/wip/props-ui-files: 12/23] props-page-widget: Add boolean reboot_required field



commit 578abfc48ad65d96932870de5120feee480d5d5f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Jun 1 20:08:31 2016 +0100

    props-page-widget: Add boolean reboot_required field
    
    Similar to previous commit, this also duplicate an API of Property class
    in preparation for dropping Property hierarchy in favor of new
    PropertiesPageWidget hierarchy.

 src/properties-page-widget.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/properties-page-widget.vala b/src/properties-page-widget.vala
index 357a431..6734f36 100644
--- a/src/properties-page-widget.vala
+++ b/src/properties-page-widget.vala
@@ -3,6 +3,7 @@ using Gtk;
 
 private class Boxes.PropertiesPageWidget: Gtk.Box {
     public bool empty;
+    public bool reboot_required;
 
     private Gtk.Grid grid;
     private List<Boxes.Property> properties;
@@ -83,7 +84,7 @@ private class Boxes.PropertiesPageWidget: Gtk.Box {
     }
 
     public bool flush_changes () {
-        var reboot_required = false;
+        var reboot_required = this.reboot_required;
 
         foreach (var property in properties) {
             property.flush ();


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