[gnome-documents/wip/cosimoc/view-rework: 7/20] trackerController: connect to settings sort-by changes directly



commit e1c17f5e522f630a531c3fa01b5adacdd29b458b
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]