[gimp] app: use gimp_tool_control_push/pop_preserve() in GimpWarpTool
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: use gimp_tool_control_push/pop_preserve() in GimpWarpTool
- Date: Fri, 7 Jun 2013 08:08:56 +0000 (UTC)
commit 964d59df58a2e34e4fdbbe40d9a4b65f74093a71
Author: Michael Natterer <mitch gimp org>
Date: Fri Jun 7 10:03:23 2013 +0200
app: use gimp_tool_control_push/pop_preserve() in GimpWarpTool
instead of set_preserve(TRUE/FALSE). It makes no difference in this
case, but push/pop is the right API to use anyway.
app/tools/gimpwarptool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index 4d14446..e19fd4c 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -325,13 +325,13 @@ gimp_warp_tool_key_press (GimpTool *tool,
case GDK_KEY_ISO_Enter:
if (wt->image_map)
{
- gimp_tool_control_set_preserve (tool->control, TRUE);
+ gimp_tool_control_push_preserve (tool->control, TRUE);
gimp_image_map_commit (wt->image_map, GIMP_PROGRESS (tool));
g_object_unref (wt->image_map);
wt->image_map = NULL;
- gimp_tool_control_set_preserve (tool->control, FALSE);
+ gimp_tool_control_pop_preserve (tool->control);
gimp_image_flush (gimp_display_get_image (display));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]