Commit 28cdc4d9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

hide the tool dialog before starting to perform the transformation.

2008-08-27  Sven Neumann  <sven@gimp.org>

	* app/tools/gimptransformtool.c 
(gimp_transform_tool_real_transform):
	hide the tool dialog before starting to perform the 
transformation.


svn path=/trunk/; revision=26787
parent a8fd690b
2008-08-27 Sven Neumann <sven@gimp.org>
* app/tools/gimptransformtool.c (gimp_transform_tool_real_transform):
hide the tool dialog before starting to perform the transformation.
2008-08-27 Sven Neumann <sven@gimp.org>
* app/core/gimp-transform-region.c: also use PixelSurround for the
......
......@@ -1066,7 +1066,10 @@ gimp_transform_tool_real_transform (GimpTransformTool *tr_tool,
TileManager *ret = NULL;
if (tr_tool->dialog)
gtk_widget_set_sensitive (tr_tool->dialog, FALSE);
{
gtk_widget_set_sensitive (tr_tool->dialog, FALSE);
gimp_dialog_factory_hide_dialog (tr_tool->dialog);
}
progress = gimp_progress_start (GIMP_PROGRESS (display),
tr_tool->progress_text, FALSE);
......@@ -1694,16 +1697,22 @@ gimp_transform_tool_prepare (GimpTransformTool *tr_tool,
GimpDisplay *display)
{
GimpTransformOptions *options = GIMP_TRANSFORM_TOOL_GET_OPTIONS (tr_tool);
gboolean show_transform;
if ((options->preview_type == GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE ||
options->preview_type == GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE_GRID) &&
options->type == GIMP_TRANSFORM_TYPE_LAYER &&
options->direction == GIMP_TRANSFORM_FORWARD)
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (display->shell),
TRUE);
{
show_transform = TRUE;
}
else
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (display->shell),
FALSE);
{
show_transfor = FALSE;
}
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (display->shell),
show_transform);
if (tr_tool->dialog)
{
......
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