[gimp] app: don't create new text layers on double and triple clicks
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't create new text layers on double and triple clicks
- Date: Fri, 19 Feb 2010 19:15:44 +0000 (UTC)
commit e4d63ce11a3ac1de90275dc953d9bf763d0f4561
Author: Michael Natterer <mitch gimp org>
Date: Fri Feb 19 10:53:46 2010 +0100
app: don't create new text layers on double and triple clicks
app/tools/gimptexttool.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 6bb7c8e..abb9014 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -502,11 +502,14 @@ gimp_text_tool_button_press (GimpTool *tool,
}
}
- /* create a new text layer */
- text_tool->text_box_fixed = FALSE;
+ if (press_type == GIMP_BUTTON_PRESS_NORMAL)
+ {
+ /* create a new text layer */
+ text_tool->text_box_fixed = FALSE;
- gimp_text_tool_connect (text_tool, NULL, NULL);
- gimp_text_tool_editor_start (text_tool);
+ gimp_text_tool_connect (text_tool, NULL, NULL);
+ gimp_text_tool_editor_start (text_tool);
+ }
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]