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,15 +709,15 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
else else
{ {
GdkEventButton *bevent = (GdkEventButton *) event; GdkEventButton *bevent = (GdkEventButton *) event;
GimpController *mouse; GimpController *mouse = gimp_controllers_get_mouse (gimp);
mouse = gimp_controllers_get_mouse (gimp);
if (!(shell->scrolling || shell->pointer_grabbed) && if (!(shell->scrolling || shell->pointer_grabbed) &&
mouse && gimp_controller_mouse_button (GIMP_CONTROLLER_MOUSE (mouse), mouse && gimp_controller_mouse_button (GIMP_CONTROLLER_MOUSE (mouse),
bevent)) bevent))
{
return TRUE; return TRUE;
} }
}
return_val = TRUE; return_val = TRUE;
} }
@ -726,9 +726,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
case GDK_SCROLL: case GDK_SCROLL:
{ {
GdkEventScroll *sevent = (GdkEventScroll *) event; GdkEventScroll *sevent = (GdkEventScroll *) event;
GimpController *wheel; GimpController *wheel = gimp_controllers_get_wheel (gimp);
wheel = gimp_controllers_get_wheel (gimp);
if (! wheel || if (! wheel ||
! gimp_controller_wheel_scroll (GIMP_CONTROLLER_WHEEL (wheel), ! gimp_controller_wheel_scroll (GIMP_CONTROLLER_WHEEL (wheel),