From fe065406772005a0e0d699f6cc0db9dc8ecad2f9 Mon Sep 17 00:00:00 2001 From: pabs Date: Sun, 13 Apr 2008 08:56:55 +0000 Subject: [PATCH] Allow scrolling left and right in time widgets git-svn-id: http://svn.voria.com/code@2017 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/widget_time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_time.cpp b/synfig-studio/trunk/src/gtkmm/widget_time.cpp index caa9924..105249f 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_time.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_time.cpp @@ -120,13 +120,13 @@ Widget_Time::on_event(GdkEvent* event) switch(event->type) { case GDK_SCROLL: - if(event->scroll.direction==GDK_SCROLL_DOWN) + if(event->scroll.direction==GDK_SCROLL_DOWN || event->scroll.direction==GDK_SCROLL_LEFT) { time_-=scroll_amount; refresh_text(); signal_value_changed()(); } - else if(event->scroll.direction==GDK_SCROLL_UP) + else if(event->scroll.direction==GDK_SCROLL_UP || event->scroll.direction==GDK_SCROLL_RIGHT) { time_+=scroll_amount; refresh_text(); -- 2.7.4