volume.js: make slider menu items activatable

Keeping the volume menu open after setting the desired volume isn't that
useful and forces a second click (or an Esc press) to dismiss it. Allow for
the sliders to be used with a single click-hold-move-release.

https://bugzilla.gnome.org/show_bug.cgi?id=649586
This commit is contained in:
Rui Matos
2011-05-06 17:34:19 +01:00
parent 02bfc74c1e
commit a50c30a4fd
2 changed files with 31 additions and 4 deletions

View File

@ -482,8 +482,8 @@ function PopupSliderMenuItem() {
PopupSliderMenuItem.prototype = {
__proto__: PopupBaseMenuItem.prototype,
_init: function(value) {
PopupBaseMenuItem.prototype._init.call(this, { activate: false });
_init: function(value, params) {
PopupBaseMenuItem.prototype._init.call(this, params ? params : { activate: false });
this.actor.connect('key-press-event', Lang.bind(this, this._onKeyPressEvent));