[gimp] app: re-enable GimpRectangleTool's "suppress_updates" keyboard moving hack
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: re-enable GimpRectangleTool's "suppress_updates" keyboard moving hack
- Date: Thu, 29 Jun 2017 20:04:06 +0000 (UTC)
commit e8c63823022e3c61c5c6c07b695a82f74d9d8166
Author: Michael Natterer <mitch gimp org>
Date: Thu Jun 29 22:02:48 2017 +0200
app: re-enable GimpRectangleTool's "suppress_updates" keyboard moving hack
so a handle can be moved with the cursor keys even if it moves away
from under the mouse pointer.
app/display/gimptoolrectangle.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/app/display/gimptoolrectangle.c b/app/display/gimptoolrectangle.c
index 9a9e44a..3f69dbb 100644
--- a/app/display/gimptoolrectangle.c
+++ b/app/display/gimptoolrectangle.c
@@ -1649,16 +1649,15 @@ gimp_tool_rectangle_hover (GimpToolWidget *widget,
GdkModifierType state,
gboolean proximity)
{
- GimpToolRectangle *rectangle = GIMP_TOOL_RECTANGLE (widget);
- GimpRectangleFunction function = GIMP_TOOL_RECTANGLE_DEAD;
+ GimpToolRectangle *rectangle = GIMP_TOOL_RECTANGLE (widget);
+ GimpToolRectanglePrivate *private = rectangle->private;
+ GimpRectangleFunction function = GIMP_TOOL_RECTANGLE_DEAD;
-#if 0
if (private->suppress_updates)
{
private->suppress_updates--;
return;
}
-#endif
if (! proximity)
{
@@ -1830,13 +1829,11 @@ gimp_tool_rectangle_key_press (GimpToolWidget *widget,
gimp_tool_rectangle_change_complete (rectangle);
-#if 0
/* Evil hack to suppress oper updates. We do this because we don't
* want the rectangle tool to change function while the rectangle
* is being resized or moved using the keyboard.
*/
private->suppress_updates = 2;
-#endif
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]