[gimp] app: add an embedding toggling test button to the transform dialogs
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add an embedding toggling test button to the transform dialogs
- Date: Fri, 7 Jun 2013 23:35:05 +0000 (UTC)
commit 90797f0927906681beb995e5609dc0e4b1951ced
Author: Michael Natterer <mitch gimp org>
Date: Sat Jun 8 01:33:35 2013 +0200
app: add an embedding toggling test button to the transform dialogs
app/tools/gimptransformtool.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index a7f4548..6d793c1 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -68,6 +68,7 @@
#define RESPONSE_RESET 1
+#define RESPONSE_EEK 2
#define MIN_HANDLE_SIZE 6
@@ -1695,6 +1696,7 @@ gimp_transform_tool_dialog (GimpTransformTool *tr_tool)
tool_info->blurb,
tr_tool->overlay,
+ GIMP_STOCK_WILBER_EEK, RESPONSE_EEK,
GIMP_STOCK_RESET, RESPONSE_RESET,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
stock_id, GTK_RESPONSE_OK,
@@ -1704,6 +1706,7 @@ gimp_transform_tool_dialog (GimpTransformTool *tr_tool)
gimp_tool_gui_set_default_response (tr_tool->gui, GTK_RESPONSE_OK);
gimp_tool_gui_set_alternative_button_order (tr_tool->gui,
+ RESPONSE_EEK,
RESPONSE_RESET,
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL,
@@ -1760,6 +1763,14 @@ gimp_transform_tool_response (GimpToolGui *gui,
switch (response_id)
{
+ case RESPONSE_EEK:
+ if (tr_tool->gui)
+ {
+ gimp_tool_gui_set_overlay (tr_tool->gui,
+ ! gimp_tool_gui_get_overlay (tr_tool->gui));
+ }
+ break;
+
case RESPONSE_RESET:
/* Move all undo events to redo, and pop off the first
* one as that's the current one, which always sits on
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]