gimp r26787 - in trunk: . app/tools
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26787 - in trunk: . app/tools
- Date: Wed, 27 Aug 2008 07:42:28 +0000 (UTC)
Author: neo
Date: Wed Aug 27 07:42:28 2008
New Revision: 26787
URL: http://svn.gnome.org/viewvc/gimp?rev=26787&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/app/tools/gimptransformtool.c
Modified: trunk/app/tools/gimptransformtool.c
==============================================================================
--- trunk/app/tools/gimptransformtool.c (original)
+++ trunk/app/tools/gimptransformtool.c Wed Aug 27 07:42:28 2008
@@ -1066,7 +1066,10 @@
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 @@
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]