Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if an applet has been removed from the panel #7

Open
fossfreedom opened this issue Aug 13, 2017 · 5 comments
Open

Detect if an applet has been removed from the panel #7

fossfreedom opened this issue Aug 13, 2017 · 5 comments

Comments

@fossfreedom
Copy link

Looking to create a test python applet which will invoke an action when the applet is removed from the panel.

Any thoughts how to-do this?

@ikeydoherty
Copy link
Member

Hm. Can I ask the use case?

@fossfreedom
Copy link
Author

sure.

Trying to find a method to remove a custom keybinding - when the applet is active its easy enough to add the keybinding via the applet init. If the applet is subsequently removed, that keybinding should be removed.

@ikeydoherty
Copy link
Member

Oh so you're trying to do it during the lifecycle of the applet, not detect other applets? You could hook up the destroy signal and do like a GLib.message() to verify its being invoked?

@fossfreedom
Copy link
Author

fossfreedom commented Aug 13, 2017

correct - applet looking after itself.

oddly it doesnt appear that destroy is being invoked on either the applet nor plugin objects.

@yursan9
Copy link

yursan9 commented Oct 20, 2017

I agree with @fossfreedom .Can you add method to detect if the applet is deleted from panel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants