Update the selection when Rounded corners is toggled or the radius is

2007-10-30  Martin Nordholts  <martinn@svn.gnome.org>

	* app/tools/gimprectangleselecttool.c
	(gimp_rect_select_tool_round_corners_notify): Update the selection
	when Rounded corners is toggled or the radius is changed as
	discussed in bug #418284.

svn path=/trunk/; revision=23991
This commit is contained in:
Martin Nordholts 2007-10-30 17:13:10 +00:00 committed by Martin Nordholts
parent b515881bdd
commit 1c8d6bb8ce
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2007-10-30 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangleselecttool.c
(gimp_rect_select_tool_round_corners_notify): Update the selection
when Rounded corners is toggled or the radius is changed as
discussed in bug #418284.
2007-10-30 Michael Natterer <mitch@gimp.org>
* modules/cdisplay_lcms.c: applied patch from Sven Neumann and

View file

@ -811,10 +811,15 @@ gimp_rect_select_tool_round_corners_notify (GimpRectSelectOptions *options,
GParamSpec *pspec,
GimpRectSelectTool *rect_sel)
{
gimp_draw_tool_pause (GIMP_DRAW_TOOL (rect_sel));
GimpDrawTool *draw_tool = GIMP_DRAW_TOOL (rect_sel);
GimpRectangleTool *rect_tool = GIMP_RECTANGLE_TOOL (rect_sel);
gimp_draw_tool_pause (draw_tool);
rect_sel->round_corners = options->round_corners;
rect_sel->corner_radius = options->corner_radius;
gimp_draw_tool_resume (GIMP_DRAW_TOOL (rect_sel));
gimp_rect_select_tool_rectangle_changed (rect_tool);
gimp_draw_tool_resume (draw_tool);
}