[gnome-shell] keyboard: Make a few functions private
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: Make a few functions private
- Date: Fri, 12 Mar 2021 16:00:59 +0000 (UTC)
commit 9f415f1c89f1c978b37356537e4e69fddb5f2aad
Author: Jonas Dreßler <verdre v0yd nl>
Date: Sat Feb 20 12:51:32 2021 +0100
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>
js/ui/keyboard.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 2d7e506644..ddec8b3aed 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]