gnome-shell/js/ui/status
Ray Strode 13bf64a53d popupMenu: Use new convenience method for settings
All the system status menus in the panel offer a
menu item to jump to a relevant part of the
control-center.

This means each status icon has the same, or nearly the
same bit of code to:

- Add a new "action" menu item and listen for its activation.
- Hide the overview if it's showing when the menu item is activated
- Find the relevant control-center panel from its desktop file
- Launch the control-center to the relevant panel

This commit consolidates all those details in a new method,
addSettingsAction.  This refactoring reduces code duplication and
slight inconsistencies in the code resulting from that duplication.
It will also make it easier in subsequent commits to hide settings menu
items when the shell is used in the login screen.

https://bugzilla.gnome.org/show_bug.cgi?id=657082
2011-08-28 12:16:04 -04:00
..
accessibility.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00
bluetooth.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00
keyboard.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00
network.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00
power.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00
volume.js popupMenu: Use new convenience method for settings 2011-08-28 12:16:04 -04:00