[gnome-documents] searchbar: propagate search string to entry at the right time
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] searchbar: propagate search string to entry at the right time
- Date: Sat, 9 Feb 2013 02:00:45 +0000 (UTC)
commit ddd9b5da77e65b05791ff46d87375fc3189386a3
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 8 20:59:35 2013 -0500
searchbar: propagate search string to entry at the right time
createSearchbar() is too early to propagate the string to the entry,
since the parent constructor still needs to connect to 'changed' on the
returned entry.
src/searchbar.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index b9ca7df..9ed0f5a 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -295,6 +295,8 @@ const OverviewSearchbar = new Lang.Class({
this._onActiveSourceChanged();
this._onActiveTypeChanged();
this._onActiveMatchChanged();
+
+ this._searchEntry.text = Application.searchController.getString();
},
createSearchWidgets: function() {
@@ -304,7 +306,6 @@ const OverviewSearchbar = new Lang.Class({
Lang.bind(this, this._onTagClicked));
// connect to search string changes in the controller
- this._searchEntry.text = Application.searchController.getString();
let searchChangedId = Application.searchController.connect('search-string-changed', Lang.bind(this,
function(controller, string) {
this._searchEntry.text = string;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]