app: minor formatting cleanup in gimpdisplayshell-tool-events.c

This commit is contained in:
Michael Natterer 2015-04-18 08:40:31 +02:00
parent 55af4159d6
commit 4ea6f6dd28
1 changed files with 6 additions and 8 deletions

View File

@ -709,14 +709,14 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
else
{
GdkEventButton *bevent = (GdkEventButton *) event;
GimpController *mouse;
mouse = gimp_controllers_get_mouse (gimp);
GimpController *mouse = gimp_controllers_get_mouse (gimp);
if (!(shell->scrolling || shell->pointer_grabbed) &&
mouse && gimp_controller_mouse_button (GIMP_CONTROLLER_MOUSE (mouse),
bevent))
return TRUE;
{
return TRUE;
}
}
return_val = TRUE;
@ -725,10 +725,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
case GDK_SCROLL:
{
GdkEventScroll *sevent = (GdkEventScroll *) event;
GimpController *wheel;
wheel = gimp_controllers_get_wheel (gimp);
GdkEventScroll *sevent = (GdkEventScroll *) event;
GimpController *wheel = gimp_controllers_get_wheel (gimp);
if (! wheel ||
! gimp_controller_wheel_scroll (GIMP_CONTROLLER_WHEEL (wheel),