[gnome-shell/wip/aggregate-menu: 34/75] popupMenu: Remove 'sensitive' input param
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aggregate-menu: 34/75] popupMenu: Remove 'sensitive' input param
- Date: Mon, 1 Jul 2013 18:10:56 +0000 (UTC)
commit 2a149e1cede0d507b965f6a1fff0b426364a25e4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Wed Jun 12 03:41:09 2013 -0400
popupMenu: Remove 'sensitive' input param
It's hard to implement properly, was broken, and unused. If somebody
really wants it, they can call setSensitive after constructing the item.
https://bugzilla.gnome.org/show_bug.cgi?id=702539
js/ui/popupMenu.js | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index b8e41b1..6d41bfa 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -42,7 +42,6 @@ const PopupBaseMenuItem = new Lang.Class({
params = Params.parse (params, { reactive: true,
activate: true,
hover: true,
- sensitive: true,
style_class: null,
can_focus: true
});
@@ -65,9 +64,6 @@ const PopupBaseMenuItem = new Lang.Class({
this._spacing = 0;
this.active = false;
this._activatable = params.reactive && params.activate;
- this.sensitive = this._activatable && params.sensitive;
-
- this.setSensitive(this.sensitive);
if (!this._activatable)
this.actor.add_style_class_name('popup-inactive-menu-item');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]