[gnome-shell] Exit the overview when activating most items
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Exit the overview when activating most items
- Date: Fri, 4 Jun 2010 00:29:44 +0000 (UTC)
commit 84efaac52ba462236b7a0c98619541bbd8ebd77d
Author: Colin Walters <walters verbum org>
Date: Thu Jun 3 19:21:08 2010 -0400
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
js/ui/statusMenu.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js
index 2b12444..bf79186 100644
--- a/js/ui/statusMenu.js
+++ b/js/ui/statusMenu.js
@@ -9,6 +9,7 @@ const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
const GnomeSession = imports.misc.gnomeSession;
+const Main = imports.ui.main;
const Panel = imports.ui.panel;
// Adapted from gdm/gui/user-switch-applet/applet.c
@@ -136,27 +137,33 @@ StatusMenuButton.prototype = {
},
_onAccountInformationActivate: function() {
+ Main.overview.hide();
this._spawn(['gnome-about-me']);
},
_onPreferencesActivate: function() {
+ Main.overview.hide();
this._spawn(['gnome-control-center']);
},
_onLockScreenActivate: function() {
+ Main.overview.hide();
this._spawn(['gnome-screensaver-command', '--lock']);
},
_onLoginScreenActivate: function() {
+ Main.overview.hide();
this._gdm.goto_login_session();
this._onLockScreenActivate();
},
_onQuitSessionActivate: function() {
+ Main.overview.hide();
this._spawn(['gnome-session-save', '--logout-dialog']);
},
_onShutDownActivate: function() {
+ Main.overview.hide();
this._spawn(['gnome-session-save', '--shutdown-dialog']);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]