GNOME Bugzilla – Bug 641608
Systray icon context menu scrolled away
Last modified: 2011-03-08 17:39:53 UTC
Rightclicking on banshee icon in system tray show a context menu which is scrolled out of the viewport.
Created attachment 180173 [details] screenshot
I see this too.
I confirm this
Any ideas as to the cause?
Created attachment 180596 [details] [review] Switches the method of context menu placement to Gtk itself. As of my findings, the trouble is caused by using a custom placement function when opening the menu. http://library.gnome.org/devel/gtk/stable/GtkMenu.html#gtk-menu-popup states that passing a null will cause the Gtk itself to position the menu on mouse coordinates, which looks reasonable to me. I have only tested this on Windows as my Linux build is having some trouble. So please, have a look at what it does in Linux and let me know if there are some issues. Further code changes may be required to clean up a little, e.g. removing the PositionMenu from INotificationAreaBox.cs and it's implementors, but my knowledge of why there was a need to use a custom placement function may be limited, so I didn't include those in this patch.
Thanks Ján, I committed your patch, but w/ #if WIN32 around it so as not to regress on Linux (I didn't have time to thoroughly test it on Linux, so better safe than sorry).