Comment 21 for bug 1005259

Revision history for this message
Ikey Doherty (ikey-doherty) wrote :

Worked out how to resolve the issue with the keybinding popping the menu up in the middle of the screen
I'll paste a patch here soon.
Basically we just use gobject's idle queue to check every few hundred miliseconds the location of the
applet on the screen. No real way of knowing where you are through the PanelApplet library, but as
you can see the click handler finds out where it is.
Now if this is constantly refreshed then we can do a dbus call to set the default location of Cardapio
and it will always appear in the right place regardless of where you moved the applet to.

Things to add (by me):
* Applet orientation code (should render in the right direction)
* Patch discussed above
* Make the Cardapio preferences show the Applet options for this particular applet (only blacklist awn,
otherwise always show it)
* Improve Cardapio's category switching (hovering over a button switches category instantly, should have
some form of delay to blank accidental hovers, improves usability)
* A menu tooltip :)
* *possibly* a new About Cardapio item on the menu applet button. Personally I'm not too keen on using
   such entries as it breaks consistency with Gnome Classic desktop but I'm all for advertising my name :P