[gnome-boxes] properties: Correctly restore notebook page
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties: Correctly restore notebook page
- Date: Thu, 4 Dec 2014 23:28:26 +0000 (UTC)
commit 56c17f738ffb00687c0030c274370798e8453c9b
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]