From 0f919fcbe3b8c5afed58e082c2dd7e14756b207c Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Wed, 11 Aug 2010 11:10:53 +0100 Subject: [PATCH] cookbook: Handle all possible mouse scroll directions Added empty cases for MOUSE_SCROLL_LEFT and MOUSE_SCROLL_RIGHT to the scroll-event signal handler in the example code. --- doc/cookbook/examples/events-mouse-scroll.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/cookbook/examples/events-mouse-scroll.c b/doc/cookbook/examples/events-mouse-scroll.c index 46dbaf1ec..b9c1c31c5 100644 --- a/doc/cookbook/examples/events-mouse-scroll.c +++ b/doc/cookbook/examples/events-mouse-scroll.c @@ -27,6 +27,9 @@ _scroll_event_cb (ClutterActor *scroll, case CLUTTER_SCROLL_DOWN: y += SCROLL_AMOUNT; break; + case CLUTTER_SCROLL_LEFT: + case CLUTTER_SCROLL_RIGHT: + break; } y = CLAMP (y,