Commit 15ac13e2 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

block the "active-layer-changed" callback while anchoring the floating

2005-02-19  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimptexttool.c (gimp_text_tool_create_layer): block
	the "active-layer-changed" callback while anchoring the floating
	selection so the callback doesn't reset the text tool in the
	middle of adding a new text layer. Fixes bug #166829.
parent 1f4b749d
2005-02-19 Michael Natterer <mitch@gimp.org>
* app/tools/gimptexttool.c (gimp_text_tool_create_layer): block
the "active-layer-changed" callback while anchoring the floating
selection so the callback doesn't reset the text tool in the
middle of adding a new text layer. Fixes bug #166829.
2005-02-19 Hans Breuer <hans@breuer.org>
* plug-ins/makefile.msc plug-ins/script-fu/script-fu-server.c :
......
......@@ -114,6 +114,8 @@ static void gimp_text_tool_editor_update (GimpTextTool *text_tool);
static void gimp_text_tool_text_changed (GimpTextEditor *editor,
GimpTextTool *text_tool);
static void gimp_text_tool_layer_changed (GimpImage *image,
GimpTextTool *text_tool);
static void gimp_text_tool_set_image (GimpTextTool *text_tool,
GimpImage *image);
static gboolean gimp_text_tool_set_drawable (GimpTextTool *text_tool,
......@@ -695,7 +697,17 @@ gimp_text_tool_create_layer (GimpTextTool *text_tool,
_("Add Text Layer"));
if (gimp_image_floating_sel (image))
floating_sel_anchor (gimp_image_floating_sel (image));
{
g_signal_handlers_block_by_func (image,
gimp_text_tool_layer_changed,
text_tool);
floating_sel_anchor (gimp_image_floating_sel (image));
g_signal_handlers_unblock_by_func (image,
gimp_text_tool_layer_changed,
text_tool);
}
GIMP_ITEM (layer)->offset_x = text_tool->x1;
GIMP_ITEM (layer)->offset_y = text_tool->y1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment