[gnome-shell/gnome-3-36] keyboard: Add missing setter
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-36] keyboard: Add missing setter
- Date: Mon, 27 Apr 2020 22:04:26 +0000 (UTC)
commit 890f5b591fef3cc3af387675c53113a5226805d1
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Apr 27 21:45:21 2020 +0000
keyboard: Add missing setter
We override the :visible property for the keyboard actor, but don't
provide a corresponding setter. The property is therefore read-only
on the javascript level, and any attempt to set it will fail.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2691
(cherry picked from commit 3ba4304da9077552c95e5a96d2bbdca5dd7088da)
js/ui/keyboard.js | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 149bafd420..e8a79f5078 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -1257,6 +1257,10 @@ class Keyboard extends St.BoxLayout {
return this._keyboardVisible && super.visible;
}
+ set visible(visible) {
+ super.visible = visible;
+ }
+
_onFocusPositionChanged(focusTracker) {
let rect = focusTracker.getCurrentRect();
this.setCursorLocation(focusTracker.currentWindow, rect.x, rect.y, rect.width, rect.height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]