mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 03:52:33 +00:00
set scroll_lock to TRUE while moving or creating sample points so the
2008-07-22 Michael Natterer <mitch@gimp.org> * app/tools/gimpcolortool.c: set scroll_lock to TRUE while moving or creating sample points so the image doesn't scroll while a new sample point is dragged from the rulers and sample points can be deleted by dragging them out of image without scrolling at the same time. svn path=/trunk/; revision=26276
This commit is contained in:
parent
a00579917a
commit
7750d317c8
|
@ -1,3 +1,11 @@
|
|||
2008-07-22 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimpcolortool.c: set scroll_lock to TRUE while moving
|
||||
or creating sample points so the image doesn't scroll while a new
|
||||
sample point is dragged from the rulers and sample points can be
|
||||
deleted by dragging them out of image without scrolling at the
|
||||
same time.
|
||||
|
||||
2008-07-22 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/tools/gimpvectortool.c: only use the position from the event
|
||||
|
|
|
@ -247,6 +247,8 @@ gimp_color_tool_button_press (GimpTool *tool,
|
|||
color_tool->sample_point_x = color_tool->sample_point->x;
|
||||
color_tool->sample_point_y = color_tool->sample_point->y;
|
||||
|
||||
gimp_tool_control_set_scroll_lock (tool->control, TRUE);
|
||||
|
||||
gimp_display_shell_selection_control (shell, GIMP_SELECTION_PAUSE);
|
||||
|
||||
gimp_draw_tool_start (GIMP_DRAW_TOOL (tool), display);
|
||||
|
@ -299,6 +301,7 @@ gimp_color_tool_button_release (GimpTool *tool,
|
|||
|
||||
gimp_tool_pop_status (tool, display);
|
||||
|
||||
gimp_tool_control_set_scroll_lock (tool->control, FALSE);
|
||||
gimp_draw_tool_stop (GIMP_DRAW_TOOL (tool));
|
||||
|
||||
if (release_type == GIMP_BUTTON_RELEASE_CANCEL)
|
||||
|
@ -811,6 +814,7 @@ gimp_color_tool_start_sample_point (GimpTool *tool,
|
|||
|
||||
tool->display = display;
|
||||
gimp_tool_control_activate (tool->control);
|
||||
gimp_tool_control_set_scroll_lock (tool->control, TRUE);
|
||||
|
||||
if (color_tool->sample_point)
|
||||
gimp_display_shell_draw_sample_point (GIMP_DISPLAY_SHELL (display->shell),
|
||||
|
|
Loading…
Reference in a new issue