[gnome-boxes] Rename Property.changes_pending to reboot_required



commit f2dd3b0108fd9ee8a65b7a0d5c605e92ada61ea6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Aug 31 02:21:24 2012 +0300

    Rename Property.changes_pending to reboot_required
    
    Name was rather misleading and will be even more so after I introduce a
    similarly named property in the next patch.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672554

 src/i-properties-provider.vala |    2 +-
 src/libvirt-machine.vala       |    4 ++--
 src/properties.vala            |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index ac123f0..b0195fb 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -4,7 +4,7 @@ using Gtk;
 private class Boxes.Property: GLib.Object {
     public string description { get; construct set; }
     public Gtk.Widget widget { get; construct set; }
-    public bool changes_pending { get; set; }
+    public bool reboot_required { get; set; }
 
     public Property (string description, Gtk.Widget widget) {
         base (description: description, widget: widget);
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index 1271231..17393d7 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -495,7 +495,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
 
             debug ("RAM actual: %llu, pending: %llu", actual, pending);
             // somehow, there are rounded errors, so let's forget about 1Mb diff
-            property.changes_pending = (actual - pending) > 1; // no need for abs()
+            property.reboot_required = (actual - pending) > 1; // no need for abs()
 
         } catch (GLib.Error e) {}
     }
@@ -514,7 +514,7 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
 
             this.notify["state"].connect (() => {
                 if (state == MachineState.STOPPED)
-                    property.changes_pending = false;
+                    property.reboot_required = false;
             });
 
             update_ram_property (property);
diff --git a/src/properties.vala b/src/properties.vala
index 666239b..aa96ac2 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -38,7 +38,7 @@ private class Boxes.Properties: Boxes.UI {
         public void update_infobar () {
             var show_it = false;
             foreach (var property in properties) {
-                if (property.changes_pending) {
+                if (property.reboot_required) {
                     show_it = true;
                     break;
                 }
@@ -108,7 +108,7 @@ private class Boxes.Properties: Boxes.UI {
                     var widget = property.widget;
                     widget.hexpand = true;
                     grid.attach (widget, 1, current_row, 1, 1);
-                    property.notify["changes-pending"].connect (update_infobar);
+                    property.notify["reboot-required"].connect (update_infobar);
                     current_row += 1;
                 }
 



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