nls1729 / acme-code

Gnome Shell Extensions etc...
https://nls1729.github.io
GNU General Public License v2.0
66 stars 25 forks source link

Update extension.js #63

Closed hobbypunk90 closed 5 years ago

hobbypunk90 commented 5 years ago

remove most deprecated .actor references and use the ExtensionManager to load the extensions.

hobbypunk90 commented 5 years ago

i actually try to understand why the activate function of the SubMenuItem is not called...

nls1729 commented 5 years ago

I think this relates to your comment, "i actually try to understand why the activate function of the SubMenuItem is not called... ".

GS version 3.34. From https://github.com/GNOME/gnome-shell/blob/master/js/ui/popupMenu.js line 695-697:

This in PopupMenuBase which is an abstract class and the base for all menu thingies not a registered GObject class.

    } else if (menuItem instanceof PopupSubMenuMenuItem) {
        if (beforeItem == null)
            this.box.add(menuItem.menu.actor);

menuItem instance has a menu which is not an actor, it has an actor

... I could be wrong.

nls1729 commented 5 years ago

I merged it and got your code and then reverted the merge. I have the code and now understand your comment, "i actually try to understand why the activate function of the SubMenuItem is not called... ". I don't have time to try and determine what is wrong.

nls1729 commented 5 years ago

I have looked at the code. The GS3.34 shell has made changes to extension support that make it impossible to make this extension functional. Several functions that are required by the extension have been removed. I think end of support for this extension at GS3.34 is my only choice.

hobbypunk90 commented 5 years ago

i got the extension working again. the only thing: it looks like it don't reload the source of the extension...

nls1729 commented 5 years ago

I looked at the wrong code, I should not get into a hurry. I got the latest code and I will try to find out why it does not work. Sorry about my mistake.

nls1729 commented 5 years ago

I found all the problems with the code. It is late afternoon here and I need to clean out all the logging from the code. I will post a patch here as soon as I get time to complete it.

nls1729 commented 5 years ago

I decided it is best to attach a zip of the three files that I changed to get the extension working. The thing I missed and finally noticed was line 107 in extension.js.

files.zip

I also attached a zip of the extension which can be installed.

extension-reloader@nls1729.zip

Let me know how it goes.