[gnome-boxes/wip/less-dialogs2: 1/14] properties: Correctly restore notebook page



commit dd5e55ac26062135d9ae278241332b5effab600f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 4 14:44:30 2014 +0000

    properties: Correctly restore notebook page
    
    We were not actually restoring to the current page after refresh of
    properties due to name clash of 'page' property with a local variable.
    This patches fixes the issue by use of 'this' keyword.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710298

 src/properties.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index f3bb2fb..51fc62a 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -133,9 +133,9 @@ private class Boxes.Properties: Gtk.Notebook, Boxes.UI {
             set_data<PageWidget> (@"boxes-property-$i", page);
 
             page.refresh_properties.connect (() => {
-                var current_page = page;
+                var current_page = this.page;
                 this.populate ();
-                page = current_page;
+                this.page = current_page;
             });
         }
 


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