From 389c27c67724f0620521133de43a462687160ce9 Mon Sep 17 00:00:00 2001 From: pabs Date: Wed, 19 Dec 2007 03:07:25 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/widget_defaults.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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; -- 2.7.4