[gnome-documents/wip/cosimoc/view-rework: 15/28] trackerController: connect to settings sort-by changes directly
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/cosimoc/view-rework: 15/28] trackerController: connect to settings sort-by changes directly
- Date: Mon, 8 Aug 2016 15:10:53 +0000 (UTC)
commit 9571c4ce4272d5ba4ee73d1fd9053a496fe2fdb9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Jul 31 21:25:54 2016 -0700
trackerController: connect to settings sort-by changes directly
Instead of going through the action state.
src/trackerController.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/trackerController.js b/src/trackerController.js
index 2c4c37e..919d027 100644
--- a/src/trackerController.js
+++ b/src/trackerController.js
@@ -137,8 +137,7 @@ const TrackerController = new Lang.Class({
this._offsetController = this.getOffsetController();
this._offsetController.connect('offset-changed', Lang.bind(this, this._performCurrentQuery));
- this._sortSettingsId = Application.application.connect('action-state-changed::sort-by',
- Lang.bind(this, this._updateSortForSettings));
+ Application.settings.connect('changed::sort-by', Lang.bind(this, this._updateSortForSettings));
this._updateSortForSettings();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]