Exit the overview when activating most items
In all the cases where we activate GNOME 2 UI, e.g. the shutdown dialog, pop out of the overview. Otherwise, it's fairly broken since you won't see the result of your action. https://bugzilla.gnome.org/show_bug.cgi?id=620525
This commit is contained in:
parent
8f5aae6df6
commit
84efaac52b
@ -9,6 +9,7 @@ const Gettext = imports.gettext.domain('gnome-shell');
|
|||||||
const _ = Gettext.gettext;
|
const _ = Gettext.gettext;
|
||||||
|
|
||||||
const GnomeSession = imports.misc.gnomeSession;
|
const GnomeSession = imports.misc.gnomeSession;
|
||||||
|
const Main = imports.ui.main;
|
||||||
const Panel = imports.ui.panel;
|
const Panel = imports.ui.panel;
|
||||||
|
|
||||||
// Adapted from gdm/gui/user-switch-applet/applet.c
|
// Adapted from gdm/gui/user-switch-applet/applet.c
|
||||||
@ -136,27 +137,33 @@ StatusMenuButton.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onAccountInformationActivate: function() {
|
_onAccountInformationActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._spawn(['gnome-about-me']);
|
this._spawn(['gnome-about-me']);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onPreferencesActivate: function() {
|
_onPreferencesActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._spawn(['gnome-control-center']);
|
this._spawn(['gnome-control-center']);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onLockScreenActivate: function() {
|
_onLockScreenActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._spawn(['gnome-screensaver-command', '--lock']);
|
this._spawn(['gnome-screensaver-command', '--lock']);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onLoginScreenActivate: function() {
|
_onLoginScreenActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._gdm.goto_login_session();
|
this._gdm.goto_login_session();
|
||||||
this._onLockScreenActivate();
|
this._onLockScreenActivate();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onQuitSessionActivate: function() {
|
_onQuitSessionActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._spawn(['gnome-session-save', '--logout-dialog']);
|
this._spawn(['gnome-session-save', '--logout-dialog']);
|
||||||
},
|
},
|
||||||
|
|
||||||
_onShutDownActivate: function() {
|
_onShutDownActivate: function() {
|
||||||
|
Main.overview.hide();
|
||||||
this._spawn(['gnome-session-save', '--shutdown-dialog']);
|
this._spawn(['gnome-session-save', '--shutdown-dialog']);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user