2011-09-28 09:16:26 -04:00
|
|
|
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2011-05-10 10:13:05 -04:00
|
|
|
const AccountsService = imports.gi.AccountsService;
|
2013-08-23 11:09:51 -04:00
|
|
|
const Clutter = imports.gi.Clutter;
|
2011-03-21 08:51:46 -04:00
|
|
|
const Gio = imports.gi.Gio;
|
2009-11-10 12:13:58 -05:00
|
|
|
const GLib = imports.gi.GLib;
|
2013-06-11 17:17:09 -04:00
|
|
|
const Shell = imports.gi.Shell;
|
2009-11-10 12:13:58 -05:00
|
|
|
const St = imports.gi.St;
|
2017-08-02 16:57:54 -04:00
|
|
|
const GObject = imports.gi.GObject;
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2012-09-18 23:02:15 -04:00
|
|
|
const BoxPointer = imports.ui.boxpointer;
|
2017-08-02 16:57:54 -04:00
|
|
|
const SystemActions = imports.misc.systemActions;
|
2010-06-03 19:21:08 -04:00
|
|
|
const Main = imports.ui.main;
|
2010-06-22 17:02:26 -04:00
|
|
|
const PanelMenu = imports.ui.panelMenu;
|
2010-05-20 11:18:46 -04:00
|
|
|
const PopupMenu = imports.ui.popupMenu;
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2015-03-05 09:46:57 -05:00
|
|
|
|
2017-10-30 21:19:44 -04:00
|
|
|
var AltSwitcher = class {
|
|
|
|
constructor(standard, alternate) {
|
2013-08-23 11:09:51 -04:00
|
|
|
this._standard = standard;
|
2017-12-01 19:27:35 -05:00
|
|
|
this._standard.connect('notify::visible', this._sync.bind(this));
|
2017-06-16 11:08:07 -04:00
|
|
|
if (this._standard instanceof St.Button)
|
|
|
|
this._standard.connect('clicked',
|
|
|
|
() => { this._clickAction.release(); });
|
2013-08-23 11:09:51 -04:00
|
|
|
|
|
|
|
this._alternate = alternate;
|
2017-12-01 19:27:35 -05:00
|
|
|
this._alternate.connect('notify::visible', this._sync.bind(this));
|
2017-06-16 11:08:07 -04:00
|
|
|
if (this._alternate instanceof St.Button)
|
|
|
|
this._alternate.connect('clicked',
|
|
|
|
() => { this._clickAction.release(); });
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2017-12-01 19:27:35 -05:00
|
|
|
this._capturedEventId = global.stage.connect('captured-event', this._onCapturedEvent.bind(this));
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2015-03-02 06:14:54 -05:00
|
|
|
this._flipped = false;
|
|
|
|
|
|
|
|
this._clickAction = new Clutter.ClickAction();
|
2017-12-01 19:27:35 -05:00
|
|
|
this._clickAction.connect('long-press', this._onLongPress.bind(this));
|
2015-03-02 06:14:54 -05:00
|
|
|
|
2013-08-23 11:09:51 -04:00
|
|
|
this.actor = new St.Bin();
|
2017-12-01 19:27:35 -05:00
|
|
|
this.actor.connect('destroy', this._onDestroy.bind(this));
|
2015-03-02 06:14:54 -05:00
|
|
|
this.actor.connect('notify::mapped', () => { this._flipped = false; });
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_sync() {
|
2013-08-23 11:09:51 -04:00
|
|
|
let childToShow = null;
|
|
|
|
|
|
|
|
if (this._standard.visible && this._alternate.visible) {
|
|
|
|
let [x, y, mods] = global.get_pointer();
|
|
|
|
let altPressed = (mods & Clutter.ModifierType.MOD1_MASK) != 0;
|
2015-03-02 06:14:54 -05:00
|
|
|
if (this._flipped)
|
|
|
|
childToShow = altPressed ? this._standard : this._alternate;
|
|
|
|
else
|
|
|
|
childToShow = altPressed ? this._alternate : this._standard;
|
2013-08-23 11:09:51 -04:00
|
|
|
} else if (this._standard.visible) {
|
|
|
|
childToShow = this._standard;
|
|
|
|
} else if (this._alternate.visible) {
|
|
|
|
childToShow = this._alternate;
|
2018-11-16 05:39:08 -05:00
|
|
|
} else {
|
|
|
|
this.actor.hide();
|
|
|
|
return;
|
2013-08-23 11:09:51 -04:00
|
|
|
}
|
|
|
|
|
2015-03-02 06:14:54 -05:00
|
|
|
let childShown = this.actor.get_child();
|
|
|
|
if (childShown != childToShow) {
|
|
|
|
if (childShown) {
|
|
|
|
if (childShown.fake_release)
|
|
|
|
childShown.fake_release();
|
|
|
|
childShown.remove_action(this._clickAction);
|
|
|
|
}
|
|
|
|
childToShow.add_action(this._clickAction);
|
|
|
|
|
2014-04-26 15:48:46 -04:00
|
|
|
let hasFocus = this.actor.contains(global.stage.get_key_focus());
|
2013-08-23 11:09:51 -04:00
|
|
|
this.actor.set_child(childToShow);
|
2014-04-26 15:48:46 -04:00
|
|
|
if (hasFocus)
|
|
|
|
childToShow.grab_key_focus();
|
2013-08-23 11:09:51 -04:00
|
|
|
|
|
|
|
// The actors might respond to hover, so
|
|
|
|
// sync the pointer to make sure they update.
|
|
|
|
global.sync_pointer();
|
|
|
|
}
|
2013-08-26 15:21:23 -04:00
|
|
|
|
2018-11-16 05:39:08 -05:00
|
|
|
this.actor.show();
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_onDestroy() {
|
2013-08-23 11:09:51 -04:00
|
|
|
if (this._capturedEventId > 0) {
|
|
|
|
global.stage.disconnect(this._capturedEventId);
|
|
|
|
this._capturedEventId = 0;
|
|
|
|
}
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_onCapturedEvent(actor, event) {
|
2013-08-23 11:09:51 -04:00
|
|
|
let type = event.type();
|
|
|
|
if (type == Clutter.EventType.KEY_PRESS || type == Clutter.EventType.KEY_RELEASE) {
|
|
|
|
let key = event.get_key_symbol();
|
|
|
|
if (key == Clutter.KEY_Alt_L || key == Clutter.KEY_Alt_R)
|
|
|
|
this._sync();
|
|
|
|
}
|
|
|
|
|
2013-11-29 13:17:34 -05:00
|
|
|
return Clutter.EVENT_PROPAGATE;
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2015-03-02 06:14:54 -05:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_onLongPress(action, actor, state) {
|
2015-03-02 06:14:54 -05:00
|
|
|
if (state == Clutter.LongPressState.QUERY ||
|
|
|
|
state == Clutter.LongPressState.CANCEL)
|
|
|
|
return true;
|
|
|
|
|
|
|
|
this._flipped = !this._flipped;
|
|
|
|
this._sync();
|
|
|
|
return true;
|
|
|
|
}
|
2017-10-30 21:19:44 -04:00
|
|
|
};
|
2010-05-10 09:46:54 -04:00
|
|
|
|
2017-10-30 21:19:44 -04:00
|
|
|
var Indicator = class extends PanelMenu.SystemIndicator {
|
|
|
|
constructor() {
|
|
|
|
super();
|
2013-06-06 17:27:25 -04:00
|
|
|
|
2017-08-02 16:57:54 -04:00
|
|
|
let userManager = AccountsService.UserManager.get_default();
|
|
|
|
this._user = userManager.get_user(GLib.get_user_name());
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2017-08-02 16:57:54 -04:00
|
|
|
this._systemActions = new SystemActions.getDefault();
|
2013-06-11 15:25:32 -04:00
|
|
|
|
|
|
|
this._createSubMenu();
|
|
|
|
|
2017-08-02 16:57:54 -04:00
|
|
|
this._loginScreenItem.actor.connect('notify::visible',
|
|
|
|
() => { this._updateMultiUser(); });
|
|
|
|
this._logoutItem.actor.connect('notify::visible',
|
|
|
|
() => { this._updateMultiUser(); });
|
2011-06-03 18:10:55 -04:00
|
|
|
// Whether shutdown is available or not depends on both lockdown
|
|
|
|
// settings (disable-log-out) and Polkit policy - the latter doesn't
|
|
|
|
// notify, so we update the menu item each time the menu opens or
|
|
|
|
// the lockdown setting changes, which should be close enough.
|
2017-10-30 20:38:18 -04:00
|
|
|
this.menu.connect('open-state-changed', (menu, open) => {
|
|
|
|
if (!open)
|
|
|
|
return;
|
2012-10-19 11:41:10 -04:00
|
|
|
|
2017-10-30 20:38:18 -04:00
|
|
|
this._systemActions.forceUpdate();
|
|
|
|
});
|
2017-08-02 16:57:54 -04:00
|
|
|
this._updateMultiUser();
|
2013-07-17 02:33:09 -04:00
|
|
|
|
2017-12-01 19:27:35 -05:00
|
|
|
Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
|
2012-09-01 08:42:53 -04:00
|
|
|
this._sessionUpdated();
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_updateActionsVisibility() {
|
2013-08-12 13:08:53 -04:00
|
|
|
let visible = (this._settingsAction.visible ||
|
|
|
|
this._orientationLockAction.visible ||
|
|
|
|
this._lockScreenAction.visible ||
|
2013-08-23 11:09:51 -04:00
|
|
|
this._altSwitcher.actor.visible);
|
2013-08-12 13:08:53 -04:00
|
|
|
|
|
|
|
this._actionsItem.actor.visible = visible;
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2013-08-12 13:08:53 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_sessionUpdated() {
|
2013-06-11 17:17:09 -04:00
|
|
|
this._settingsAction.visible = Main.sessionMode.allowSettings;
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_updateMultiUser() {
|
2017-08-02 16:57:54 -04:00
|
|
|
let hasSwitchUser = this._loginScreenItem.actor.visible;
|
|
|
|
let hasLogout = this._logoutItem.actor.visible;
|
2013-06-11 15:25:32 -04:00
|
|
|
|
2017-08-02 16:57:54 -04:00
|
|
|
this._switchUserSubMenu.actor.visible = hasSwitchUser || hasLogout;
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2013-06-11 15:25:32 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_updateSwitchUserSubMenu() {
|
2013-06-11 15:25:32 -04:00
|
|
|
this._switchUserSubMenu.label.text = this._user.get_real_name();
|
2013-08-12 06:56:51 -04:00
|
|
|
let clutterText = this._switchUserSubMenu.label.clutter_text;
|
|
|
|
|
|
|
|
// XXX -- for some reason, the ClutterText's width changes
|
|
|
|
// rapidly unless we force a relayout of the actor. Probably
|
|
|
|
// a size cache issue or something. Moving this to be a layout
|
|
|
|
// manager would be a much better idea.
|
|
|
|
clutterText.get_allocation_box();
|
|
|
|
|
|
|
|
let layout = clutterText.get_layout();
|
|
|
|
if (layout.is_ellipsized())
|
|
|
|
this._switchUserSubMenu.label.text = this._user.get_user_name();
|
2013-06-11 15:25:32 -04:00
|
|
|
|
|
|
|
let iconFile = this._user.get_icon_file();
|
|
|
|
if (iconFile && !GLib.file_test(iconFile, GLib.FileTest.EXISTS))
|
|
|
|
iconFile = null;
|
|
|
|
|
|
|
|
if (iconFile) {
|
|
|
|
let file = Gio.File.new_for_path(iconFile);
|
|
|
|
let gicon = new Gio.FileIcon({ file: file });
|
|
|
|
this._switchUserSubMenu.icon.gicon = gicon;
|
2015-08-06 05:19:37 -04:00
|
|
|
|
|
|
|
this._switchUserSubMenu.icon.add_style_class_name('user-icon');
|
|
|
|
this._switchUserSubMenu.icon.remove_style_class_name('default-icon');
|
2013-06-11 15:25:32 -04:00
|
|
|
} else {
|
2013-08-12 13:10:18 -04:00
|
|
|
this._switchUserSubMenu.icon.icon_name = 'avatar-default-symbolic';
|
2015-08-06 05:19:37 -04:00
|
|
|
|
|
|
|
this._switchUserSubMenu.icon.add_style_class_name('default-icon');
|
|
|
|
this._switchUserSubMenu.icon.remove_style_class_name('user-icon');
|
2013-06-11 15:25:32 -04:00
|
|
|
}
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2011-03-21 08:51:46 -04:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_createActionButton(iconName, accessibleName) {
|
2013-06-11 17:17:09 -04:00
|
|
|
let icon = new St.Button({ reactive: true,
|
|
|
|
can_focus: true,
|
|
|
|
track_hover: true,
|
|
|
|
accessible_name: accessibleName,
|
|
|
|
style_class: 'system-menu-action' });
|
|
|
|
icon.child = new St.Icon({ icon_name: iconName });
|
|
|
|
return icon;
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2011-02-04 18:37:54 -05:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_createSubMenu() {
|
2017-08-02 16:57:54 -04:00
|
|
|
let bindFlags = GObject.BindingFlags.DEFAULT | GObject.BindingFlags.SYNC_CREATE;
|
2009-11-10 12:13:58 -05:00
|
|
|
let item;
|
|
|
|
|
2013-06-11 15:25:32 -04:00
|
|
|
this._switchUserSubMenu = new PopupMenu.PopupSubMenuMenuItem('', true);
|
|
|
|
this._switchUserSubMenu.icon.style_class = 'system-switch-user-submenu-icon';
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2013-08-12 06:56:51 -04:00
|
|
|
// Since the label of the switch user submenu depends on the width of
|
|
|
|
// the popup menu, and we can't easily connect on allocation-changed
|
|
|
|
// or notify::width without creating layout cycles, simply update the
|
|
|
|
// label whenever the menu is opened.
|
2017-10-30 20:38:18 -04:00
|
|
|
this.menu.connect('open-state-changed', (menu, isOpen) => {
|
2013-08-12 06:56:51 -04:00
|
|
|
if (isOpen)
|
|
|
|
this._updateSwitchUserSubMenu();
|
2017-10-30 20:38:18 -04:00
|
|
|
});
|
2013-08-12 06:56:51 -04:00
|
|
|
|
2010-10-19 11:59:23 -04:00
|
|
|
item = new PopupMenu.PopupMenuItem(_("Switch User"));
|
2017-08-02 16:57:54 -04:00
|
|
|
item.connect('activate', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
|
|
|
this._systemActions.activateSwitchUser();
|
|
|
|
});
|
2013-06-11 15:25:32 -04:00
|
|
|
this._switchUserSubMenu.menu.addMenuItem(item);
|
2009-11-10 12:13:58 -05:00
|
|
|
this._loginScreenItem = item;
|
2017-08-02 16:57:54 -04:00
|
|
|
this._systemActions.bind_property('can-switch-user',
|
|
|
|
this._loginScreenItem.actor,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2012-05-10 07:24:12 -04:00
|
|
|
item = new PopupMenu.PopupMenuItem(_("Log Out"));
|
2017-08-02 16:57:54 -04:00
|
|
|
item.connect('activate', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
|
|
|
this._systemActions.activateLogout();
|
|
|
|
});
|
2013-06-11 15:25:32 -04:00
|
|
|
this._switchUserSubMenu.menu.addMenuItem(item);
|
2011-03-21 08:51:46 -04:00
|
|
|
this._logoutItem = item;
|
2017-08-02 16:57:54 -04:00
|
|
|
this._systemActions.bind_property('can-logout',
|
|
|
|
this._logoutItem.actor,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2015-08-06 05:19:37 -04:00
|
|
|
this._switchUserSubMenu.menu.addSettingsAction(_("Account Settings"),
|
|
|
|
'gnome-user-accounts-panel.desktop');
|
|
|
|
|
2017-12-01 19:27:35 -05:00
|
|
|
this._user.connect('notify::is-loaded', this._updateSwitchUserSubMenu.bind(this));
|
|
|
|
this._user.connect('changed', this._updateSwitchUserSubMenu.bind(this));
|
2013-06-11 15:25:32 -04:00
|
|
|
|
2013-06-11 17:17:09 -04:00
|
|
|
this.menu.addMenuItem(this._switchUserSubMenu);
|
2013-06-11 15:25:32 -04:00
|
|
|
|
2013-06-11 17:17:09 -04:00
|
|
|
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
|
|
|
|
2013-07-15 20:00:41 -04:00
|
|
|
item = new PopupMenu.PopupBaseMenuItem({ reactive: false,
|
|
|
|
can_focus: false });
|
2013-06-11 17:17:09 -04:00
|
|
|
|
2018-07-24 10:40:03 -04:00
|
|
|
let app = this._settingsApp = Shell.AppSystem.get_default().lookup_app(
|
|
|
|
'gnome-control-center.desktop'
|
|
|
|
);
|
|
|
|
if (app) {
|
|
|
|
let [icon, name] = [app.app_info.get_icon().names[0],
|
|
|
|
app.get_name()];
|
|
|
|
this._settingsAction = this._createActionButton(icon, name);
|
|
|
|
this._settingsAction.connect('clicked',
|
2018-07-31 12:23:05 -04:00
|
|
|
this._onSettingsClicked.bind(this));
|
2018-07-24 10:40:03 -04:00
|
|
|
} else {
|
|
|
|
log('Missing required core component Settings, expect trouble…');
|
|
|
|
this._settingsAction = new St.Widget();
|
|
|
|
}
|
2013-07-15 20:00:41 -04:00
|
|
|
item.actor.add(this._settingsAction, { expand: true, x_fill: false });
|
2013-06-11 17:17:09 -04:00
|
|
|
|
2013-07-17 02:33:09 -04:00
|
|
|
this._orientationLockAction = this._createActionButton('', _("Orientation Lock"));
|
2017-08-02 16:57:54 -04:00
|
|
|
this._orientationLockAction.connect('clicked', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE),
|
|
|
|
this._systemActions.activateLockOrientation();
|
|
|
|
});
|
2013-07-17 02:33:09 -04:00
|
|
|
item.actor.add(this._orientationLockAction, { expand: true, x_fill: false });
|
2017-08-02 16:57:54 -04:00
|
|
|
this._systemActions.bind_property('can-lock-orientation',
|
|
|
|
this._orientationLockAction,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
|
|
|
this._systemActions.bind_property('orientation-lock-icon',
|
|
|
|
this._orientationLockAction.child,
|
|
|
|
'icon-name',
|
|
|
|
bindFlags);
|
2013-07-17 02:33:09 -04:00
|
|
|
|
2018-07-24 10:29:56 -04:00
|
|
|
this._lockScreenAction = this._createActionButton('changes-prevent', _("Lock"));
|
2017-08-02 16:57:54 -04:00
|
|
|
this._lockScreenAction.connect('clicked', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
|
|
|
this._systemActions.activateLockScreen();
|
|
|
|
});
|
2013-07-15 20:00:41 -04:00
|
|
|
item.actor.add(this._lockScreenAction, { expand: true, x_fill: false });
|
2017-08-02 16:57:54 -04:00
|
|
|
this._systemActions.bind_property('can-lock-screen',
|
|
|
|
this._lockScreenAction,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
2013-06-11 17:17:09 -04:00
|
|
|
|
2018-07-24 10:29:56 -04:00
|
|
|
this._suspendAction = this._createActionButton('media-playback-pause', _("Suspend"));
|
2017-08-02 16:57:54 -04:00
|
|
|
this._suspendAction.connect('clicked', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
|
|
|
this._systemActions.activateSuspend();
|
|
|
|
});
|
|
|
|
this._systemActions.bind_property('can-suspend',
|
|
|
|
this._suspendAction,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
2013-08-23 11:09:51 -04:00
|
|
|
|
2018-07-24 10:29:56 -04:00
|
|
|
this._powerOffAction = this._createActionButton('system-shutdown', _("Power Off"));
|
2017-08-02 16:57:54 -04:00
|
|
|
this._powerOffAction.connect('clicked', () => {
|
|
|
|
this.menu.itemActivated(BoxPointer.PopupAnimation.NONE);
|
|
|
|
this._systemActions.activatePowerOff();
|
|
|
|
});
|
|
|
|
this._systemActions.bind_property('can-power-off',
|
|
|
|
this._powerOffAction,
|
|
|
|
'visible',
|
|
|
|
bindFlags);
|
2013-08-23 11:09:51 -04:00
|
|
|
|
|
|
|
this._altSwitcher = new AltSwitcher(this._powerOffAction, this._suspendAction);
|
|
|
|
item.actor.add(this._altSwitcher.actor, { expand: true, x_fill: false });
|
2012-06-28 06:22:17 -04:00
|
|
|
|
2013-08-12 13:08:53 -04:00
|
|
|
this._actionsItem = item;
|
2012-06-28 06:22:17 -04:00
|
|
|
this.menu.addMenuItem(item);
|
2017-08-02 16:57:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
this._settingsAction.connect('notify::visible',
|
|
|
|
() => { this._updateActionsVisibility(); });
|
|
|
|
this._orientationLockAction.connect('notify::visible',
|
|
|
|
() => { this._updateActionsVisibility(); });
|
|
|
|
this._lockScreenAction.connect('notify::visible',
|
|
|
|
() => { this._updateActionsVisibility(); });
|
|
|
|
this._altSwitcher.actor.connect('notify::visible',
|
|
|
|
() => { this._updateActionsVisibility(); });
|
2017-10-30 21:19:44 -04:00
|
|
|
}
|
2009-11-10 12:13:58 -05:00
|
|
|
|
2017-10-30 20:03:21 -04:00
|
|
|
_onSettingsClicked() {
|
2013-06-11 17:17:09 -04:00
|
|
|
this.menu.itemActivated();
|
|
|
|
Main.overview.hide();
|
2018-07-24 10:40:03 -04:00
|
|
|
this._settingsApp.activate();
|
2017-08-02 16:57:54 -04:00
|
|
|
}
|
2017-10-30 21:19:44 -04:00
|
|
|
};
|