diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-16 15:41:25 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-07-16 15:41:25 +0200 |
commit | 19b729898ed630a0923fa91a4ee4c0146c7939a7 (patch) | |
tree | 97612d9bbc70fc3326942d00b1b143587da96771 | |
parent | 1a211d63c3c6282a03274d600f12292939fa57ca (diff) | |
download | libayatana-indicator-19b729898ed630a0923fa91a4ee4c0146c7939a7.tar.gz libayatana-indicator-19b729898ed630a0923fa91a4ee4c0146c7939a7.tar.bz2 libayatana-indicator-19b729898ed630a0923fa91a4ee4c0146c7939a7.zip |
IndicatorNG: Reverse the scroll delta on left scroll events
As it happens for left scroll events.
-rw-r--r-- | libindicator/indicator-ng.c | 8 |
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)); } |