mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 09:53:25 +00:00
Preview is now only used for layer transformations.
2004-06-14 Philip Lafleur <plafleur@cvs.gnome.org> * app/tools/gimptransformtool.c: Preview is now only used for layer transformations.
This commit is contained in:
parent
4c68bd878a
commit
4ad2d7177f
2 changed files with 27 additions and 19 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-06-14 Philip Lafleur <plafleur@cvs.gnome.org>
|
||||
|
||||
* app/tools/gimptransformtool.c: Preview is now only used for
|
||||
layer transformations.
|
||||
|
||||
2004-06-14 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/tools/gimpperspectivetool.c
|
||||
|
|
|
@ -962,20 +962,14 @@ gimp_transform_tool_doit (GimpTransformTool *tr_tool,
|
|||
if (! active_item)
|
||||
return;
|
||||
|
||||
if (GIMP_IS_DISPLAY (GIMP_DRAW_TOOL (tr_tool)->gdisp))
|
||||
if (gimp_display_shell_get_show_transform (GIMP_DISPLAY_SHELL (gdisp->shell)))
|
||||
{
|
||||
GimpDisplayShell *shell;
|
||||
|
||||
shell = GIMP_DISPLAY_SHELL (GIMP_DRAW_TOOL (tr_tool)->gdisp->shell);
|
||||
|
||||
if (gimp_display_shell_get_show_transform (shell))
|
||||
{
|
||||
gimp_display_shell_set_show_transform (shell, FALSE);
|
||||
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (gdisp->shell),
|
||||
FALSE);
|
||||
|
||||
/* get rid of preview artifacts left outside the drawable's area */
|
||||
gimp_transform_tool_expose_preview (tr_tool);
|
||||
}
|
||||
}
|
||||
|
||||
gimp_set_busy (gdisp->gimage->gimp);
|
||||
|
||||
|
@ -1440,8 +1434,12 @@ gimp_transform_tool_prepare (GimpTransformTool *tr_tool,
|
|||
options =
|
||||
GIMP_TRANSFORM_OPTIONS (GIMP_TOOL (tr_tool)->tool_info->tool_options);
|
||||
|
||||
if (options->type == GIMP_TRANSFORM_TYPE_LAYER)
|
||||
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (gdisp->shell),
|
||||
options->show_preview);
|
||||
else
|
||||
gimp_display_shell_set_show_transform (GIMP_DISPLAY_SHELL (gdisp->shell),
|
||||
FALSE);
|
||||
|
||||
if (tr_tool->info_dialog)
|
||||
{
|
||||
|
@ -1554,6 +1552,8 @@ gimp_transform_tool_notify_preview (GimpTransformOptions *options,
|
|||
|
||||
shell = GIMP_DISPLAY_SHELL (GIMP_DRAW_TOOL (tr_tool)->gdisp->shell);
|
||||
|
||||
if (options->type == GIMP_TRANSFORM_TYPE_LAYER)
|
||||
{
|
||||
gimp_display_shell_set_show_transform (shell, options->show_preview);
|
||||
|
||||
/* expose area to clean up if preview is being turned off */
|
||||
|
@ -1564,3 +1564,6 @@ gimp_transform_tool_notify_preview (GimpTransformOptions *options,
|
|||
|
||||
options->show_preview = show_preview;
|
||||
}
|
||||
else
|
||||
gimp_display_shell_set_show_transform (shell, FALSE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue