gimp r26276 - in trunk: . app/tools



Author: mitch
Date: Tue Jul 22 14:43:52 2008
New Revision: 26276
URL: http://svn.gnome.org/viewvc/gimp?rev=26276&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpcolortool.c

Modified: trunk/app/tools/gimpcolortool.c
==============================================================================
--- trunk/app/tools/gimpcolortool.c	(original)
+++ trunk/app/tools/gimpcolortool.c	Tue Jul 22 14:43:52 2008
@@ -247,6 +247,8 @@
       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_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 @@
 
   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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]