switcherPopup: Always show the arrows if the popup is scrollable

Currently we only show/hide the left and right arrows when
we reach the initial/end position. This patch changes this
behaviour by showing the arrows whenever is a scroll is possible.

https://bugzilla.gnome.org/show_bug.cgi?id=711467
This commit is contained in:
Jonh Wendell 2014-01-13 15:43:01 -02:00
parent 765d0228c0
commit d1c4e60636

View File

@ -452,10 +452,9 @@ const SwitcherList = new Lang.Class({
time: POPUP_SCROLL_TIME,
transition: 'easeOutQuad',
onComplete: Lang.bind(this, function () {
if (this._highlighted == 0) {
if (this._highlighted == 0)
this._scrollableLeft = false;
this.actor.queue_relayout();
}
this.actor.queue_relayout();
})
});
},
@ -477,10 +476,9 @@ const SwitcherList = new Lang.Class({
time: POPUP_SCROLL_TIME,
transition: 'easeOutQuad',
onComplete: Lang.bind(this, function () {
if (this._highlighted == this._items.length - 1) {
if (this._highlighted == this._items.length - 1)
this._scrollableRight = false;
this.actor.queue_relayout();
}
this.actor.queue_relayout();
})
});
},