Clear highlight in previously active shell when changing active shell.

2007-08-18  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_button_press): Clear highlight in previously
	active shell when changing active shell.

svn path=/trunk/; revision=23318
This commit is contained in:
Martin Nordholts 2007-08-18 06:59:02 +00:00 committed by Martin Nordholts
parent e4baf09863
commit 264d44588b
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-08-18 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_button_press): Clear highlight in previously
active shell when changing active shell.
2007-08-18 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimpcroptool.c (gimp_crop_tool_button_release): Call

View File

@ -606,7 +606,11 @@ gimp_rectangle_tool_button_press (GimpTool *tool,
if (display != tool->display)
{
if (gimp_draw_tool_is_active (draw_tool))
gimp_draw_tool_stop (draw_tool);
{
gimp_display_shell_set_highlight (GIMP_DISPLAY_SHELL (draw_tool->display->shell),
NULL);
gimp_draw_tool_stop (draw_tool);
}
gimp_rectangle_tool_set_function (rectangle, RECT_CREATING);