[gnome-shell-extensions/wip/fmuellner/fix-113-master] drive-menu: Stop using compatibility actor property



commit 078147fadc1666eb0a0ce256960ea1b6ddd6b8f6
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 10 20:50:25 2018 +0200

    drive-menu: Stop using compatibility actor property
    
    PanelMenu.Button sets up a `this.actor = this` property for compatibility,
    but let's reflect the actual new object hierarchy.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/issues/113

 extensions/drive-menu/extension.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 4002cb1..eaa15df 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -125,7 +125,7 @@ class DriveMenu extends PanelMenu.Button {
 
         hbox.add_child(icon);
         hbox.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
-        this.actor.add_child(hbox);
+        this.add_child(hbox);
 
         this._monitor = Gio.VolumeMonitor.get();
         this._addedId = this._monitor.connect('mount-added', (monitor, mount) => {
@@ -153,9 +153,9 @@ class DriveMenu extends PanelMenu.Button {
 
     _updateMenuVisibility() {
         if (this._mounts.filter(i => i.actor.visible).length > 0)
-            this.actor.show();
+            this.show();
         else
-            this.actor.hide();
+            this.hide();
     }
 
     _addMount(mount) {


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