[gnome-shell/gnome-3-38] keyboard: Fix suggestions box



commit d3eecd6d39b20b3f7657575e56f00a8346498f5b
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>
    (cherry picked from commit f76e6877c7f788b08a1bf371bcc49207eda4882d)

 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 a579495ad6..cf3a210de3 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -197,7 +197,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]