GNOME Bugzilla – Bug 646915
panel: provide a consistent way to refer to panel items from lg
Last modified: 2011-04-26 12:22:14 UTC
There is currently no simple way to refer to a status area menu from within lg; the easiest way to get to it currently is to use the picker, click the menu, and get the actor's _delegate. This is annoying when testing, and also annoying when trying to help other people debug (eg, bug 646902 comment 2). (The activities button is currently available as "Main.panel.button", because main.js needs access to it, but I added Main.panel._activities as well for consistency.)
Created attachment 185306 [details] [review] panel: provide a consistent way to refer to panel items from lg Rename a few Panel fields and add a _statusArea object pointing to the status area PanelButton objects. You can now address each item consistently from lg: Main.panel._activities Main.panel._appMenu Main.panel._dateMenu Main.panel._statusArea.a11y Main.panel._statusArea.volume ... Main.panel._userMenu
Review of attachment 185306 [details] [review]: This looks fine.
Attachment 185306 [details] pushed as 9d5906d - panel: provide a consistent way to refer to panel items from lg