mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
searchController: Use connectObject for the stage key focus signal
This ensures it's properly disconnected on shutdown. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1349>
This commit is contained in:
parent
9bc89b821c
commit
e62eae74fd
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ var SearchController = GObject.registerClass({
|
|||
this._searchResults.popupMenuDefault();
|
||||
});
|
||||
this._entry.connect('notify::mapped', this._onMapped.bind(this));
|
||||
global.stage.connect('notify::key-focus', this._onStageKeyFocusChanged.bind(this));
|
||||
global.stage.connectObject('notify::key-focus',
|
||||
this._onStageKeyFocusChanged.bind(this), this);
|
||||
|
||||
this._entry.set_primary_icon(new St.Icon({
|
||||
style_class: 'search-entry-icon',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue