[gnome-shell] keyboard: Fix suggestions box



commit f76e6877c7f788b08a1bf371bcc49207eda4882d
Author: Jia Chao <jiachao2130 126 com>
Date:   Tue Apr 13 10:07:54 2021 +0800

    keyboard: Fix suggestions box
    
    The suggestions box actor was not being correctly populated.
    Make it correctly use the St.BoxLayout add_child() method.
    
    Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3422
    Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2965
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1806>

 js/ui/keyboard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 866382e4fe..10a21cbe07 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -198,7 +198,7 @@ class Suggestions extends St.BoxLayout {
     add(word, callback) {
         let button = new St.Button({ label: word });
         button.connect('clicked', callback);
-        this.add(button);
+        this.add_child(button);
     }
 
     clear() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]