[gimp] app: make gimp_display_shell_flush_event_queue() private
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make gimp_display_shell_flush_event_queue() private
- Date: Sun, 20 Feb 2011 15:58:43 +0000 (UTC)
commit 4030e3f446d8aa9b5b3c027b9e8405ba0019a782
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 20 16:58:03 2011 +0100
app: make gimp_display_shell_flush_event_queue() private
app/display/gimpdisplayshell-callbacks.c | 28 ++++++++++++++--------------
app/display/gimpdisplayshell-callbacks.h | 2 --
2 files changed, 14 insertions(+), 16 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index ee01486..9cc49f9 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -111,7 +111,8 @@ static void gimp_display_shell_canvas_expose_image (GimpDisplayShell
static void gimp_display_shell_canvas_expose_drop_zone (GimpDisplayShell *shell,
GdkEventExpose *eevent,
cairo_t *cr);
-static void gimp_display_shell_process_tool_event_queue (GimpDisplayShell *shell,
+static gboolean gimp_display_shell_flush_event_queue (GimpDisplayShell *shell);
+static void gimp_display_shell_process_event_queue (GimpDisplayShell *shell,
GdkModifierType state,
guint32 time);
@@ -1219,7 +1220,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
{
if (gimp_tool_control_is_active (active_tool->control))
{
-
if (shell->event_queue->len > 0)
gimp_display_shell_flush_event_queue (shell);
@@ -1477,9 +1477,9 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
active_tool->max_coord_smooth,
history_events[i]->time))
{
- gimp_display_shell_process_tool_event_queue (shell,
- state,
- history_events[i]->time);
+ gimp_display_shell_process_event_queue (shell,
+ state,
+ history_events[i]->time);
}
shell->last_read_motion_time = history_events[i]->time;
@@ -1499,9 +1499,9 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
active_tool->max_coord_smooth,
time))
{
- gimp_display_shell_process_tool_event_queue (shell,
- state,
- time);
+ gimp_display_shell_process_event_queue (shell,
+ state,
+ time);
}
shell->last_read_motion_time = time;
@@ -1991,9 +1991,9 @@ gimp_display_shell_flush_event_queue (GimpDisplayShell *shell)
gimp_display_shell_push_event_history (shell, &last_coords);
- gimp_display_shell_process_tool_event_queue (shell,
- shell->last_active_state,
- shell->last_read_motion_time);
+ gimp_display_shell_process_event_queue (shell,
+ shell->last_active_state,
+ shell->last_read_motion_time);
}
/* Return false so a potential timeout calling it gets removed */
@@ -2004,9 +2004,9 @@ gimp_display_shell_flush_event_queue (GimpDisplayShell *shell)
/* private functions */
static void
-gimp_display_shell_process_tool_event_queue (GimpDisplayShell *shell,
- GdkModifierType state,
- guint32 time)
+gimp_display_shell_process_event_queue (GimpDisplayShell *shell,
+ GdkModifierType state,
+ guint32 time)
{
gint i;
gint keep = 0;
diff --git a/app/display/gimpdisplayshell-callbacks.h b/app/display/gimpdisplayshell-callbacks.h
index 9c36e2c..d9d777a 100644
--- a/app/display/gimpdisplayshell-callbacks.h
+++ b/app/display/gimpdisplayshell-callbacks.h
@@ -59,7 +59,5 @@ gboolean gimp_display_shell_nav_button_press (GtkWidget *widget,
GdkEventButton *bevent,
GimpDisplayShell *shell);
-gboolean gimp_display_shell_flush_event_queue (GimpDisplayShell *shell);
-
#endif /* __GIMP_DISPLAY_SHELL_CALLBACKS_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]