mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
keyboard: Make a few functions private
Now that we got rid of the external calls to setCursorLocation(), we can make that private. animateShow() and animateHide() weren't called from outside anyway, so let's make those private, too. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1728>
This commit is contained in:
parent
f3f0396b7e
commit
9f415f1c89
1 changed files with 5 additions and 5 deletions
|
|
@ -1765,7 +1765,7 @@ var Keyboard = GObject.registerClass({
|
|||
return;
|
||||
|
||||
this._relayout();
|
||||
this.animateShow();
|
||||
this._animateShow();
|
||||
|
||||
this._setEmojiActive(false);
|
||||
}
|
||||
|
|
@ -1792,11 +1792,11 @@ var Keyboard = GObject.registerClass({
|
|||
if (this._keyboardRequested)
|
||||
return;
|
||||
|
||||
this.animateHide();
|
||||
this._animateHide();
|
||||
this.setCursorLocation(null);
|
||||
}
|
||||
|
||||
animateShow() {
|
||||
_animateShow() {
|
||||
if (this._focusWindow)
|
||||
this._animateWindow(this._focusWindow, true);
|
||||
|
||||
|
|
@ -1824,7 +1824,7 @@ var Keyboard = GObject.registerClass({
|
|||
keyboardBox.queue_relayout();
|
||||
}
|
||||
|
||||
animateHide(immediate) {
|
||||
_animateHide(immediate) {
|
||||
if (this._focusWindow)
|
||||
this._animateWindow(this._focusWindow, false);
|
||||
|
||||
|
|
@ -1869,7 +1869,7 @@ var Keyboard = GObject.registerClass({
|
|||
|
||||
gestureCancel() {
|
||||
if (this._gestureInProgress)
|
||||
this.animateHide();
|
||||
this._animateHide();
|
||||
this._gestureInProgress = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue