[gnome-shell-extensions] windowsNavigator: Use normal inheritance for non-GObject class



commit 01f921541f61c2b8da2ad755e9ad21eaf5127cc9
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Jan 26 23:10:54 2020 +0100

    windowsNavigator: Use normal inheritance for non-GObject class
    
    More fallout from commit 63615cb657.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/104

 extensions/windowsNavigator/extension.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index e359c12..0d8ebe5 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -6,10 +6,9 @@ const Main = imports.ui.main;
 const Workspace = imports.ui.workspace;
 const WorkspacesView = imports.ui.workspacesView;
 
-var MyWindowOverlay = GObject.registerClass(
 class MyWindowOverlay extends Workspace.WindowOverlay {
-    _init(windowClone, parentActor) {
-        super._init(windowClone, parentActor);
+    constructor(windowClone, parentActor) {
+        super(windowClone, parentActor);
 
         this._id = null;
         this._text = new St.Label({
@@ -40,7 +39,7 @@ class MyWindowOverlay extends Workspace.WindowOverlay {
         this._text.set_position(Math.floor(textX) + 5, Math.floor(textY) + 5);
         this._text.raise_top();
     }
-});
+}
 
 var MyWorkspace = GObject.registerClass(
 class MyWorkspace extends Workspace.Workspace {


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