From: pabs Date: Sun, 13 Apr 2008 08:56:55 +0000 (+0000) Subject: Allow scrolling left and right in time widgets X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fe065406772005a0e0d699f6cc0db9dc8ecad2f9;p=synfig.git Allow scrolling left and right in time widgets git-svn-id: http://svn.voria.com/code@2017 1f10aa63-cdf2-0310-b900-c93c546f37ac --- 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();