Also allow adjustment of the default brush size using horizontal scrolling. Now left...
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 19 Dec 2007 03:07:25 +0000 (03:07 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 19 Dec 2007 03:07:25 +0000 (03:07 +0000)
git-svn-id: http://svn.voria.com/code@1220 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 4e85ffe..cf2f864 100644 (file)
@@ -170,13 +170,15 @@ public:
                                {
                                        Distance dist(synfigapp::Main::get_bline_width());
 
-                                       if(event->scroll.direction==GDK_SCROLL_UP)
-                                       {
-                                               dist+=DEFAULT_INCREMENT;
-                                       }
-                                       else if(event->scroll.direction==GDK_SCROLL_DOWN)
-                                       {
-                                               dist-=DEFAULT_INCREMENT;
+                                       switch(event->scroll.direction){
+                                               case GDK_SCROLL_UP:
+                                               case GDK_SCROLL_RIGHT:
+                                                       dist+=DEFAULT_INCREMENT;
+                                               break;
+                                               case GDK_SCROLL_DOWN:
+                                               case GDK_SCROLL_LEFT:
+                                                       dist-=DEFAULT_INCREMENT;
+                                               break;
                                        }
                                        synfigapp::Main::set_bline_width(dist);
                                        return true;