Pass the scroll amount in variables that we can modify as we please before

2008-08-26  Martin Nordholts  <martinn@svn.gnome.org>

	* app/display/gimpdisplayshell-autoscroll.c
	(gimp_display_shell_autoscroll_timeout): Pass the scroll amount in
	variables that we can modify as we please before they actually
	reach gimp_display_shell_scroll().

svn path=/trunk/; revision=26773
This commit is contained in:
Martin Nordholts 2008-08-26 17:47:30 +00:00 committed by Martin Nordholts
parent c986dd66c8
commit fb56170667
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2008-08-26 Martin Nordholts <martinn@svn.gnome.org>
* app/display/gimpdisplayshell-autoscroll.c
(gimp_display_shell_autoscroll_timeout): Pass the scroll amount in
variables that we can modify as we please before they actually
reach gimp_display_shell_scroll().
2008-08-26 Michael Natterer <mitch@gimp.org>
* app/tools/gimppaintoptions-gui.c (gimp_paint_options_gui): don't

View file

@ -130,14 +130,16 @@ gimp_display_shell_autoscroll_timeout (gpointer data)
if (dx || dy)
{
GimpDisplay *display = shell->display;
GimpTool *active_tool = tool_manager_get_active (display->gimp);
GimpDisplay *display = shell->display;
GimpTool *active_tool = tool_manager_get_active (display->gimp);
gint scroll_amount_x = AUTOSCROLL_DX * dx;
gint scroll_amount_y = AUTOSCROLL_DX * dy;
info->time += AUTOSCROLL_DT;
gimp_display_shell_scroll (shell,
AUTOSCROLL_DX * (gdouble) dx,
AUTOSCROLL_DX * (gdouble) dy);
scroll_amount_x,
scroll_amount_y);
gimp_display_shell_untransform_coordinate (shell,
&device_coords,