[gimp] app: don't redundantly set GimpToolControl->scroll_lock to FALSE
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't redundantly set GimpToolControl->scroll_lock to FALSE
- Date: Sat, 10 Dec 2011 22:23:55 +0000 (UTC)
commit 57dd302ee820811566537dab28d0f7e22c7a9106
Author: Michael Natterer <mitch gimp org>
Date: Sat Dec 10 23:15:03 2011 +0100
app: don't redundantly set GimpToolControl->scroll_lock to FALSE
app/tools/gimpeditselectiontool.c | 4 +---
app/tools/gimpfreeselecttool.c | 1 -
app/tools/gimpvectortool.c | 1 -
3 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c
index dd5104c..6454bd5 100644
--- a/app/tools/gimpeditselectiontool.c
+++ b/app/tools/gimpeditselectiontool.c
@@ -62,8 +62,7 @@
#include "gimp-intl.h"
-#define EDIT_SELECT_SCROLL_LOCK FALSE
-#define ARROW_VELOCITY 25
+#define ARROW_VELOCITY 25
typedef struct _GimpEditSelectionTool GimpEditSelectionTool;
@@ -150,7 +149,6 @@ gimp_edit_selection_tool_init (GimpEditSelectionTool *edit_selection_tool)
{
GimpTool *tool = GIMP_TOOL (edit_selection_tool);
- gimp_tool_control_set_scroll_lock (tool->control, EDIT_SELECT_SCROLL_LOCK);
gimp_tool_control_set_motion_mode (tool->control, GIMP_MOTION_MODE_COMPRESS);
edit_selection_tool->origx = 0;
diff --git a/app/tools/gimpfreeselecttool.c b/app/tools/gimpfreeselecttool.c
index 921c9d0..280cfc4 100644
--- a/app/tools/gimpfreeselecttool.c
+++ b/app/tools/gimpfreeselecttool.c
@@ -233,7 +233,6 @@ gimp_free_select_tool_init (GimpFreeSelectTool *fst)
GimpTool *tool = GIMP_TOOL (fst);
GimpFreeSelectToolPrivate *priv = GET_PRIVATE (fst);
- gimp_tool_control_set_scroll_lock (tool->control, FALSE);
gimp_tool_control_set_wants_click (tool->control, TRUE);
gimp_tool_control_set_precision (tool->control,
GIMP_CURSOR_PRECISION_SUBPIXEL);
diff --git a/app/tools/gimpvectortool.c b/app/tools/gimpvectortool.c
index 97a3129..27ccbaf 100644
--- a/app/tools/gimpvectortool.c
+++ b/app/tools/gimpvectortool.c
@@ -188,7 +188,6 @@ gimp_vector_tool_init (GimpVectorTool *vector_tool)
{
GimpTool *tool = GIMP_TOOL (vector_tool);
- gimp_tool_control_set_scroll_lock (tool->control, FALSE);
gimp_tool_control_set_handle_empty_image (tool->control, TRUE);
gimp_tool_control_set_motion_mode (tool->control,
GIMP_MOTION_MODE_COMPRESS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]