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
@ -1765,7 +1765,7 @@ var Keyboard = GObject.registerClass({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
this._relayout();
|
this._relayout();
|
||||||
this.animateShow();
|
this._animateShow();
|
||||||
|
|
||||||
this._setEmojiActive(false);
|
this._setEmojiActive(false);
|
||||||
}
|
}
|
||||||
@ -1792,11 +1792,11 @@ var Keyboard = GObject.registerClass({
|
|||||||
if (this._keyboardRequested)
|
if (this._keyboardRequested)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
this.animateHide();
|
this._animateHide();
|
||||||
this.setCursorLocation(null);
|
this.setCursorLocation(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
animateShow() {
|
_animateShow() {
|
||||||
if (this._focusWindow)
|
if (this._focusWindow)
|
||||||
this._animateWindow(this._focusWindow, true);
|
this._animateWindow(this._focusWindow, true);
|
||||||
|
|
||||||
@ -1824,7 +1824,7 @@ var Keyboard = GObject.registerClass({
|
|||||||
keyboardBox.queue_relayout();
|
keyboardBox.queue_relayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
animateHide(immediate) {
|
_animateHide(immediate) {
|
||||||
if (this._focusWindow)
|
if (this._focusWindow)
|
||||||
this._animateWindow(this._focusWindow, false);
|
this._animateWindow(this._focusWindow, false);
|
||||||
|
|
||||||
@ -1869,7 +1869,7 @@ var Keyboard = GObject.registerClass({
|
|||||||
|
|
||||||
gestureCancel() {
|
gestureCancel() {
|
||||||
if (this._gestureInProgress)
|
if (this._gestureInProgress)
|
||||||
this.animateHide();
|
this._animateHide();
|
||||||
this._gestureInProgress = false;
|
this._gestureInProgress = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user