GNOME Bugzilla – Bug 586156
Improve postioning of status menu
Last modified: 2009-06-30 13:59:00 UTC
Currently we position the user status menu at the upper left of the user status button. Then, because Mutter is inappropriately positioning override-redirect windows it get shoved into the workarea. Once that bug is fixed (bug 582639), we'll have to position the menu ourselves. This patch aligns the user status menu at the left end of and beneath the top panel.
Created attachment 136854 [details] [review] Improve postioning of status menu
Hm, would it make more sense to import the panel height from a global somewhere? I guess right now it's in JavaScript...maybe a #define SHELL_PANEL_HEIGHT 32 in shell-panel.h, and I think introspection will pick that up and make it accessible as Shell.PANEL_HEIGHT, though I may be wrong. I would say though if we add this patch we'd need a comment in panel.js saying that if you change the layout to note to update this code as well.
+ /* Encapsulation breakage: it looks better if the menu is + * aligned with the bottom of the actor's grandparent - the + * panel, rather than with the bottom of the actor. isn't the button supposed to extend the full height of the panel?
Pushed as is (I forgot there were outstanding comments before I pushed), I think it's *OK* as it is, though it probably would be better to add some linking comments. I think you are right Dan that I could have just aligned with the bottom of the _parent_ (The full-height button on the panel) rather than going all the way up to the grandparent.