[polari/wip/kunaljain/polari-search-result-view] ui: Set up bindings in the .ui file
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/kunaljain/polari-search-result-view] ui: Set up bindings in the .ui file
- Date: Fri, 22 Jul 2016 12:53:50 +0000 (UTC)
commit 18fd551d4a712c90771f39f717ba8e31b1ab268c
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 22 03:40:51 2016 +0200
ui: Set up bindings in the .ui file
data/resources/main-window.ui | 2 ++
src/mainWindow.js | 12 ------------
2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index 8ec43ed..2327345 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -67,6 +67,8 @@
<property name="valign">center</property>
<property name="margin-start">5</property>
<property name="margin-end">5</property>
+ <property name="active" bind-source="searchBar"
+ bind-property="search-mode-enabled"
bind-flags="sync-create|bidirectional"/>
<style>
<class name="image-button"/>
</style>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index eba254d..a19b02d 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -102,7 +102,6 @@ const MainWindow = new Lang.Class({
InternalChildren: ['titlebarRight',
'titlebarLeft',
'joinButton',
- 'searchButton',
'searchBar',
'searchEntry',
'showUserListButton',
@@ -223,17 +222,6 @@ const MainWindow = new Lang.Class({
// search start
this._keywords = [];
- this.bind_property('search-active',
- this._searchButton,
- 'active',
- GObject.BindingFlags.SYNC_CREATE |
- GObject.BindingFlags.BIDIRECTIONAL);
- this.bind_property('search-active',
- this._searchBar,
- 'search-mode-enabled',
- GObject.BindingFlags.SYNC_CREATE |
- GObject.BindingFlags.BIDIRECTIONAL);
-
this._searchBar.connect_entry(this._searchEntry);
this._searchBar.connect('notify::search-mode-enabled',
Lang.bind(this, this._updateMode));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]