[gimp] app: move variable to local scope in gimp_display_shell_canvas_tool_events()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: move variable to local scope in gimp_display_shell_canvas_tool_events()
- Date: Fri, 9 Dec 2011 19:54:50 +0000 (UTC)
commit 435b5b4386f567ec6c8755ff924d028075d40dfa
Author: Michael Natterer <mitch gimp org>
Date: Fri Dec 9 20:54:24 2011 +0100
app: move variable to local scope in gimp_display_shell_canvas_tool_events()
app/display/gimpdisplayshell-tool-events.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 5e149d1..32c9656 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -444,7 +444,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
case GDK_BUTTON_PRESS:
{
GdkEventButton *bevent = (GdkEventButton *) event;
- GdkEventMask event_mask;
GimpTool *active_tool;
/* ignore new mouse events */
@@ -505,7 +504,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
}
else if (bevent->button == 1)
{
- event_mask = (GDK_BUTTON1_MOTION_MASK | GDK_BUTTON_RELEASE_MASK);
+ GdkEventMask event_mask = (GDK_BUTTON1_MOTION_MASK |
+ GDK_BUTTON_RELEASE_MASK);
if (active_tool &&
(! shell->display->config->perfect_mouse ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]