diff options
Diffstat (limited to 'overrides')
-rw-r--r-- | overrides/endless_private/search_box.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/overrides/endless_private/search_box.js b/overrides/endless_private/search_box.js index ea45531..f076962 100644 --- a/overrides/endless_private/search_box.js +++ b/overrides/endless_private/search_box.js @@ -141,6 +141,16 @@ const SearchBox = new Lang.Class({ return Gdk.EVENT_STOP; }, + /* Set the entry text without triggering the text-changed signal. + */ + set_text_programmatically: function (text) { + if (this.text === text) + return; + this._entry_changed_by_widget = true; + this.text = text; + this.set_position(-1); + }, + /* Set the menu items by providing an array of item objects: [ { |