Block gimp_rectangle_tool_options_notify when changing fixed-aspect

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

	* app/tools/gimprectangletool.c
	(gimp_rectangle_tool_active_modifier_key): Block
	gimp_rectangle_tool_options_notify when changing fixed-aspect
	through the shift key. Fixes bug #417168.


svn path=/trunk/; revision=22896
This commit is contained in:
Martin Nordholts
2007-07-08 13:38:58 +00:00
committed by Martin Nordholts
parent 2496945c55
commit d8803f29b6
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2007-07-08 Martin Nordholts <martinn@svn.gnome.org>
* app/tools/gimprectangletool.c
(gimp_rectangle_tool_active_modifier_key): Block
gimp_rectangle_tool_options_notify when changing fixed-aspect
through the shift key. Fixes bug #417168.
2007-07-08 Sven Neumann <sven@gimp.org>
* plug-ins/jpeg/jpeg.c

View File

@ -1133,9 +1133,20 @@ gimp_rectangle_tool_active_modifier_key (GimpTool *tool,
if (key == GDK_SHIFT_MASK)
{
/* Here we want to handle manualy when to update the rectangle, so we
* don't want gimp_rectangle_tool_options_notify to do anything.
*/
g_signal_handlers_block_by_func (options,
gimp_rectangle_tool_options_notify,
rectangle);
g_object_set (options,
"fixed-aspect", ! options_private->fixed_aspect,
NULL);
g_signal_handlers_unblock_by_func (options,
gimp_rectangle_tool_options_notify,
rectangle);
}
if (key == GDK_CONTROL_MASK)