[gimp] Bug 704238 - Notify through status bar that warp effect is committed with ENTER
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 704238 - Notify through status bar that warp effect is committed with ENTER
- Date: Sat, 20 Jul 2013 23:50:00 +0000 (UTC)
commit 3aaa0a956d35e86155082a5a7ce4acba0972c4d4
Author: Jehan <jehan girinstud io>
Date: Tue Jul 16 23:17:35 2013 +0900
Bug 704238 - Notify through status bar that warp effect is committed with ENTER
app/tools/gimpwarptool.c | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index e19fd4c..db64544 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -207,7 +207,10 @@ gimp_warp_tool_button_press (GimpTool *tool,
gint off_x, off_y;
if (tool->display && display != tool->display)
- gimp_warp_tool_halt (wt);
+ {
+ gimp_tool_pop_status (tool, tool->display);
+ gimp_warp_tool_halt (wt);
+ }
if (! tool->display)
gimp_warp_tool_start (wt, display);
@@ -278,11 +281,16 @@ gimp_warp_tool_button_release (GimpTool *tool,
g_object_unref (wt->redo_stack->data);
wt->redo_stack = g_list_remove_link (wt->redo_stack, wt->redo_stack);
}
- else if (wt->redo_stack)
+ else
{
- /* the redo stack becomes invalid by actually doing a stroke */
- g_list_free_full (wt->redo_stack, (GDestroyNotify) g_object_unref);
- wt->redo_stack = NULL;
+ if (wt->redo_stack)
+ {
+ /* the redo stack becomes invalid by actually doing a stroke */
+ g_list_free_full (wt->redo_stack, (GDestroyNotify) g_object_unref);
+ wt->redo_stack = NULL;
+ }
+ gimp_tool_push_status (tool, tool->display,
+ _("Press ENTER to commit the transform"));
}
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]