[gimp] app: rename the functions dealing with GimpDisplayShell's software cursor
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: rename the functions dealing with GimpDisplayShell's software cursor
- Date: Sun, 20 Feb 2011 13:47:33 +0000 (UTC)
commit f7bb5f460ca725e36339b781526e1b48ccaabb28
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 20 14:43:09 2011 +0100
app: rename the functions dealing with GimpDisplayShell's software cursor
to gimp_display_shell_foo_software_cursor() in order to remove
confusion with the functions that deal with the windowing system's
cursor.
app/display/gimpdisplayshell-callbacks.c | 16 ++++++------
app/display/gimpdisplayshell-cursor.c | 14 +++++-----
app/display/gimpdisplayshell-cursor.h | 39 +++++++++++++++++------------
3 files changed, 38 insertions(+), 31 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 5a385f8..d6b22ee 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -787,7 +787,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
return TRUE;
shell->proximity = FALSE;
- gimp_display_shell_clear_cursor (shell);
+ gimp_display_shell_clear_software_cursor (shell);
tool_manager_oper_update_active (gimp,
&image_coords, state,
@@ -809,7 +809,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
GIMP_LOG (TOOL_EVENTS, "event (display %p): PROXIMITY_OUT", display);
shell->proximity = FALSE;
- gimp_display_shell_clear_cursor (shell);
+ gimp_display_shell_clear_software_cursor (shell);
tool_manager_oper_update_active (gimp,
&image_coords, state,
@@ -1797,12 +1797,12 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
if (active_tool)
precision = gimp_tool_control_get_precision (active_tool->control);
- gimp_display_shell_update_cursor (shell,
- precision,
- (gint) display_coords.x,
- (gint) display_coords.y,
- image_coords.x,
- image_coords.y);
+ gimp_display_shell_update_software_cursor (shell,
+ precision,
+ (gint) display_coords.x,
+ (gint) display_coords.y,
+ image_coords.x,
+ image_coords.y);
}
return return_val;
diff --git a/app/display/gimpdisplayshell-cursor.c b/app/display/gimpdisplayshell-cursor.c
index 27b4126..c483f24 100644
--- a/app/display/gimpdisplayshell-cursor.c
+++ b/app/display/gimpdisplayshell-cursor.c
@@ -117,12 +117,12 @@ gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell)
}
void
-gimp_display_shell_update_cursor (GimpDisplayShell *shell,
- GimpCursorPrecision precision,
- gint display_x,
- gint display_y,
- gdouble image_x,
- gdouble image_y)
+gimp_display_shell_update_software_cursor (GimpDisplayShell *shell,
+ GimpCursorPrecision precision,
+ gint display_x,
+ gint display_y,
+ gdouble image_x,
+ gdouble image_y)
{
GimpStatusbar *statusbar;
GimpSessionInfo *session_info;
@@ -184,7 +184,7 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
}
void
-gimp_display_shell_clear_cursor (GimpDisplayShell *shell)
+gimp_display_shell_clear_software_cursor (GimpDisplayShell *shell)
{
GimpStatusbar *statusbar;
GimpSessionInfo *session_info;
diff --git a/app/display/gimpdisplayshell-cursor.h b/app/display/gimpdisplayshell-cursor.h
index 18bf871..6e20cf5 100644
--- a/app/display/gimpdisplayshell-cursor.h
+++ b/app/display/gimpdisplayshell-cursor.h
@@ -19,22 +19,29 @@
#define __GIMP_DISPLAY_SHELL_CURSOR_H__
-void gimp_display_shell_set_cursor (GimpDisplayShell *shell,
- GimpCursorType cursor_type,
- GimpToolCursorType tool_cursor,
- GimpCursorModifier modifier);
-void gimp_display_shell_unset_cursor (GimpDisplayShell *shell);
-void gimp_display_shell_set_override_cursor (GimpDisplayShell *shell,
- GimpCursorType cursor_type);
-void gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell);
-
-void gimp_display_shell_update_cursor (GimpDisplayShell *shell,
- GimpCursorPrecision precision,
- gint display_x,
- gint display_y,
- gdouble image_x,
- gdouble image_y);
-void gimp_display_shell_clear_cursor (GimpDisplayShell *shell);
+/* functions dealing with the normal windowing system cursor */
+
+void gimp_display_shell_set_cursor (GimpDisplayShell *shell,
+ GimpCursorType cursor_type,
+ GimpToolCursorType tool_cursor,
+ GimpCursorModifier modifier);
+void gimp_display_shell_unset_cursor (GimpDisplayShell *shell);
+void gimp_display_shell_set_override_cursor (GimpDisplayShell *shell,
+ GimpCursorType cursor_type);
+void gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell);
+
+
+/* functions dealing with the software cursor that is drawn to the
+ * canvas by GIMP
+ */
+
+void gimp_display_shell_update_software_cursor (GimpDisplayShell *shell,
+ GimpCursorPrecision precision,
+ gint display_x,
+ gint display_y,
+ gdouble image_x,
+ gdouble image_y);
+void gimp_display_shell_clear_software_cursor (GimpDisplayShell *shell);
#endif /* __GIMP_DISPLAY_SHELL_CURSOR_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]