Allow scrolling left and right in time widgets
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 13 Apr 2008 08:56:55 +0000 (08:56 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 13 Apr 2008 08:56:55 +0000 (08:56 +0000)
git-svn-id: http://svn.voria.com/code@2017 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/widget_time.cpp

index caa9924..105249f 100644 (file)
@@ -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();