[gnome-documents] view: fix signal connection for visible view notification
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] view: fix signal connection for visible view notification
- Date: Tue, 11 Oct 2016 01:23:33 +0000 (UTC)
commit c0f4f3a4be008bb747fdb87dd4f39249464ea715
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Oct 10 18:22:54 2016 -0700
view: fix signal connection for visible view notification
This was lost when the code was moved from Embed to the View class.
src/view.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/view.js b/src/view.js
index 75efa97..fbea78c 100644
--- a/src/view.js
+++ b/src/view.js
@@ -752,14 +752,14 @@ const View = new Lang.Class({
this._search = new ViewContainer(WindowMode.WindowMode.SEARCH);
this._stack.add_named(this._search, 'search');
- this.connect('notify::visible-child',
- Lang.bind(this, this._onVisibleChildChanged));
+ this._stack.connect('notify::visible-child',
+ Lang.bind(this, this._onVisibleChildChanged));
this.show();
},
_onVisibleChildChanged: function() {
- let visibleChild = this.visible_child;
+ let visibleChild = this._stack.visible_child;
let windowMode;
if (visibleChild == this._collections)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]