[gimp] app: set "last_read_motion_time" in gimp_motion_buffer_eval_event()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: set "last_read_motion_time" in gimp_motion_buffer_eval_event()
- Date: Sun, 17 Apr 2011 17:06:38 +0000 (UTC)
commit 2dbaf7f49093d0a9ffc97d1c9146652dd7bd8122
Author: Michael Natterer <mitch gimp org>
Date: Sun Apr 17 19:05:49 2011 +0200
app: set "last_read_motion_time" in gimp_motion_buffer_eval_event()
because it is called whenever we process a newly received event.
app/display/gimpdisplayshell-tool-events.c | 5 -----
app/display/gimpmotionbuffer.c | 2 ++
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-tool-events.c b/app/display/gimpdisplayshell-tool-events.c
index 6c230fe..3adf6f9 100644
--- a/app/display/gimpdisplayshell-tool-events.c
+++ b/app/display/gimpdisplayshell-tool-events.c
@@ -936,8 +936,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
state,
history_events[i]->time);
}
-
- shell->motion_buffer->last_read_motion_time = history_events[i]->time;
}
tool_manager_control_active (gimp, GIMP_TOOL_ACTION_RESUME,
@@ -960,8 +958,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
state,
time);
}
-
- shell->motion_buffer->last_read_motion_time = time;
}
}
}
@@ -994,7 +990,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
gimp_motion_buffer_push_event_history (shell->motion_buffer,
&image_coords);
- shell->motion_buffer->last_read_motion_time = time;
}
return_val = TRUE;
diff --git a/app/display/gimpmotionbuffer.c b/app/display/gimpmotionbuffer.c
index 4092e94..0144e61 100644
--- a/app/display/gimpmotionbuffer.c
+++ b/app/display/gimpmotionbuffer.c
@@ -377,6 +377,8 @@ gimp_motion_buffer_eval_event (GimpMotionBuffer *buffer,
g_array_append_val (buffer->event_queue, *coords);
+ buffer->last_read_motion_time = time;
+
buffer->last_coords = *coords;
buffer->last_motion_time = time;
buffer->last_motion_delta_time = delta_time;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]