backgroundMenu: Add a context menu on the background actor

Allow users to change their wallpaper and launch System Settings
from it.

https://bugzilla.gnome.org/show_bug.cgi?id=681540
This commit is contained in:
Jasper St. Pierre
2012-12-21 07:55:00 -05:00
parent eab4c7bce9
commit fae838b054
4 changed files with 67 additions and 0 deletions

View File

@ -10,6 +10,7 @@ const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const BackgroundMenu = imports.ui.backgroundMenu;
const Components = imports.ui.components;
const CtrlAltTab = imports.ui.ctrlAltTab;
const EndSessionDialog = imports.ui.endSessionDialog;
@ -141,6 +142,8 @@ function start() {
windowAttentionHandler = new WindowAttentionHandler.WindowAttentionHandler();
componentManager = new Components.ComponentManager();
BackgroundMenu.addBackgroundMenu(global.background_actor);
layoutManager.init();
overview.init();