[gnome-shell] app-menu: Fix quit menu item
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] app-menu: Fix quit menu item
- Date: Fri, 5 Nov 2010 19:27:13 +0000 (UTC)
commit 34aa46a844568432bf49163af3c0821a86e2e30a
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Nov 5 18:48:04 2010 +0100
app-menu: Fix quit menu item
As popup menus now take focus for keyboard navigation, no application
is focused when activating the menu. Use the target application instead,
which keeps track of the application currently associated with the menu.
https://bugzilla.gnome.org/show_bug.cgi?id=634103
js/ui/panel.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/panel.js b/js/ui/panel.js
index eb1e4a3..2866995 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -408,9 +408,9 @@ AppMenuButton.prototype = {
},
_onQuit: function() {
- if (this._focusedApp == null)
+ if (this._targetApp == null)
return;
- this._focusedApp.request_quit();
+ this._targetApp.request_quit();
},
_onAppStateChanged: function(tracker, app) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]