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
This commit is contained in:
Jasper St. Pierre 2013-06-12 03:41:09 -04:00
parent 5c036eadf9
commit bc317bf3f2

View File

@ -42,7 +42,6 @@ const PopupBaseMenuItem = new Lang.Class({
params = Params.parse (params, { reactive: true, params = Params.parse (params, { reactive: true,
activate: true, activate: true,
hover: true, hover: true,
sensitive: true,
style_class: null, style_class: null,
can_focus: true can_focus: true
}); });
@ -65,9 +64,6 @@ const PopupBaseMenuItem = new Lang.Class({
this._spacing = 0; this._spacing = 0;
this.active = false; this.active = false;
this._activatable = params.reactive && params.activate; this._activatable = params.reactive && params.activate;
this.sensitive = this._activatable && params.sensitive;
this.setSensitive(this.sensitive);
if (!this._activatable) if (!this._activatable)
this.actor.add_style_class_name('popup-inactive-menu-item'); this.actor.add_style_class_name('popup-inactive-menu-item');