[gnome-shell-extensions] drive-menu: Stop using deprecated child properties



commit 9c964eaf1b18b906930ebc92472eb95c0d25df5a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 9 20:16:39 2020 +0100

    drive-menu: Stop using deprecated child properties
    
    StBoxLayout's child properties were deprecated in favor of the generic
    expand/align properties.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/102

 extensions/drive-menu/extension.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index f2c32a3..6a15de4 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -17,7 +17,7 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
         super._init();
 
         this.label = new St.Label({ text: mount.get_name() });
-        this.add(this.label, { expand: true });
+        this.add_child(this.label);
         this.label_actor = this.label;
 
         this.mount = mount;


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