I made a small gtk3 panel applet which uses toogle button to launch a window that emulates gtk menu behaviour. The window hides if clicked outside.
iid is TestApplet. for now.
The applet's purpose is to show and hide desktop icons. I managed to make it work with all panel positions (top, bottom, left, right).
Is there a way to increase the icon size in the panel? The icon is in the toogle button.
Edit: Thanks for notifying me that Ubuntu community site messed up the spaces in this python script for some reason
the source is here ---> https://pastebin.com/EgTSdvjk
A small screen recording to demonstrate how it works.
Ha, I was able to pick the "Computer" icon because the Peek screen recorder was on top. Without the Peek, the applet window hides when selecting another window or an icon on the Desktop.