From: pabs Date: Wed, 19 Dec 2007 03:07:25 +0000 (+0000) Subject: Also allow adjustment of the default brush size using horizontal scrolling. Now left... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=389c27c67724f0620521133de43a462687160ce9;p=synfig.git Also allow adjustment of the default brush size using horizontal scrolling. Now left/down decreases, right/up increases. git-svn-id: http://svn.voria.com/code@1220 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/widget_defaults.cpp b/synfig-studio/trunk/src/gtkmm/widget_defaults.cpp index 4e85ffe..cf2f864 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_defaults.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_defaults.cpp @@ -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;