From bc317bf3f2840ee2e0c75b81f20f3f1012b57525 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 12 Jun 2013 03:41:09 -0400 Subject: [PATCH] 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 file changed, 4 deletions(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index c2bc99623..29e6ff1ad 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');