mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
searchController: Avoid event.set_source() API
It does not make sense that the target actor is both destinatary and content of the events being sent, so this API call is going away. Since the event can be sent entirely unmodified (more so, it will become immutable/readonly in the future), avoid creating a copy since it does not matter sending one or other struct. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2216>
This commit is contained in:
parent
dc0f286fe9
commit
6d895bf8a9
1 changed files with 1 additions and 4 deletions
|
|
@ -228,10 +228,7 @@ var SearchController = GObject.registerClass({
|
|||
|
||||
startSearch(event) {
|
||||
global.stage.set_key_focus(this._text);
|
||||
|
||||
let synthEvent = event.copy();
|
||||
synthEvent.set_source(this._text);
|
||||
this._text.event(synthEvent, false);
|
||||
this._text.event(event, false);
|
||||
}
|
||||
|
||||
// the entry does not show the hint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue