[gnome-shell-extensions/wip/fmuellner/fix-113-master: 16/17] workspace-indicator: Stop using compatibility actor property



commit 34c20e6176f66b4652571ca39255646d3e42d300
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 10 20:54:12 2018 +0200

    workspace-indicator: 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/workspace-indicator/extension.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/workspace-indicator/extension.js b/extensions/workspace-indicator/extension.js
index a3ca9c4..9491b83 100644
--- a/extensions/workspace-indicator/extension.js
+++ b/extensions/workspace-indicator/extension.js
@@ -33,7 +33,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
         this.statusLabel = new St.Label({ y_align: Clutter.ActorAlign.CENTER,
                                           text: this._labelText() });
 
-        this.actor.add_actor(this.statusLabel);
+        this.add_actor(this.statusLabel);
 
         this.workspacesItems = [];
         this._workspaceSection = new PopupMenu.PopupMenuSection();
@@ -47,7 +47,7 @@ class WorkspaceIndicator extends PanelMenu.Button {
         this._workspaceManagerSignals.push(workspaceManager.connect_after('workspace-switched',
                                                                           this._updateIndicator.bind(this)));
 
-        this.actor.connect('scroll-event', this._onScrollEvent.bind(this));
+        this.connect('scroll-event', this._onScrollEvent.bind(this));
         this._createWorkspacesSection();
 
         //styling


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