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



commit f2ec9404d30f59ef2047164e2f433f43ee7834ff
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]