[gnome-shell] [AppWell] Don't add "New Window" item to menus for transient apps
- From: Dan Winship <danw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [AppWell] Don't add "New Window" item to menus for transient apps
- Date: Tue, 22 Sep 2009 17:31:02 +0000 (UTC)
commit 0918bdd6128cbca829a0454e0593ea2e7e56664f
Author: Dan Winship <danw gnome org>
Date: Mon Sep 21 09:25:39 2009 -0400
[AppWell] Don't add "New Window" item to menus for transient apps
js/ui/appDisplay.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 641b043..8298b78 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -599,9 +599,11 @@ WellMenu.prototype = {
}
this._appendWindows(otherWorkspaceWindows, iconsDiffer);
- this._appendSeparator();
+ if (!this._source.appInfo.is_transient()) {
+ this._appendSeparator();
- this._newWindowMenuItem = this._appendMenuItem(null, _("New Window"));
+ this._newWindowMenuItem = this._appendMenuItem(null, _("New Window"));
+ }
},
_appendSeparator: function () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]