aboutsummaryrefslogtreecommitdiff
path: root/libindicator/indicator-ng.c
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2014-09-22 13:41:26 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-09-22 13:41:26 +0000
commit5ae67890e7b5a0131a48476736e8b86e409d2a01 (patch)
tree97612d9bbc70fc3326942d00b1b143587da96771 /libindicator/indicator-ng.c
parent14a8261fa665d98b030ea7e6f1060ed281e13845 (diff)
parent19b729898ed630a0923fa91a4ee4c0146c7939a7 (diff)
downloadlibayatana-indicator-5ae67890e7b5a0131a48476736e8b86e409d2a01.tar.gz
libayatana-indicator-5ae67890e7b5a0131a48476736e8b86e409d2a01.tar.bz2
libayatana-indicator-5ae67890e7b5a0131a48476736e8b86e409d2a01.zip
IndicatorNG: Reverse the scroll delta on left scroll events
As it happens for left scroll events. Fixes: 1342731 Approved by: Charles Kerr, PS Jenkins bot
Diffstat (limited to 'libindicator/indicator-ng.c')
-rw-r--r--libindicator/indicator-ng.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c
index d83a2b5..d1d2854 100644
--- a/libindicator/indicator-ng.c
+++ b/libindicator/indicator-ng.c
@@ -194,8 +194,12 @@ indicator_ng_entry_scrolled (IndicatorObject *io,
if (self->actions && self->scroll_action)
{
- if (direction == INDICATOR_OBJECT_SCROLL_DOWN)
- delta *= -1;
+ if (direction == INDICATOR_OBJECT_SCROLL_DOWN ||
+ direction == INDICATOR_OBJECT_SCROLL_LEFT)
+ {
+ delta *= -1;
+ }
+
g_action_group_activate_action (self->actions, self->scroll_action,
g_variant_new_int32 (delta));
}