[gnome-shell] switcherPopup: Always show the arrows if the popup is scrollable
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] switcherPopup: Always show the arrows if the popup is scrollable
- Date: Mon, 13 Jan 2014 18:03:04 +0000 (UTC)
commit d1c4e6063603998fc330cd977fd64017f3e35f62
Author: Jonh Wendell <jonh wendell intel com>
Date: Mon Jan 13 15:43:01 2014 -0200
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
js/ui/switcherPopup.js | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/js/ui/switcherPopup.js b/js/ui/switcherPopup.js
index 3538825..3b1532f 100644
--- a/js/ui/switcherPopup.js
+++ b/js/ui/switcherPopup.js
@@ -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();
})
});
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]