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.
This commit is contained in:
Michael Natterer
2011-02-20 14:43:09 +01:00
parent 72638e3a8f
commit f7bb5f460c
3 changed files with 37 additions and 30 deletions

View File

@ -787,7 +787,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
return TRUE; return TRUE;
shell->proximity = FALSE; shell->proximity = FALSE;
gimp_display_shell_clear_cursor (shell); gimp_display_shell_clear_software_cursor (shell);
tool_manager_oper_update_active (gimp, tool_manager_oper_update_active (gimp,
&image_coords, state, &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); GIMP_LOG (TOOL_EVENTS, "event (display %p): PROXIMITY_OUT", display);
shell->proximity = FALSE; shell->proximity = FALSE;
gimp_display_shell_clear_cursor (shell); gimp_display_shell_clear_software_cursor (shell);
tool_manager_oper_update_active (gimp, tool_manager_oper_update_active (gimp,
&image_coords, state, &image_coords, state,
@ -1797,7 +1797,7 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
if (active_tool) if (active_tool)
precision = gimp_tool_control_get_precision (active_tool->control); precision = gimp_tool_control_get_precision (active_tool->control);
gimp_display_shell_update_cursor (shell, gimp_display_shell_update_software_cursor (shell,
precision, precision,
(gint) display_coords.x, (gint) display_coords.x,
(gint) display_coords.y, (gint) display_coords.y,

View File

@ -117,7 +117,7 @@ gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell)
} }
void void
gimp_display_shell_update_cursor (GimpDisplayShell *shell, gimp_display_shell_update_software_cursor (GimpDisplayShell *shell,
GimpCursorPrecision precision, GimpCursorPrecision precision,
gint display_x, gint display_x,
gint display_y, gint display_y,
@ -184,7 +184,7 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
} }
void void
gimp_display_shell_clear_cursor (GimpDisplayShell *shell) gimp_display_shell_clear_software_cursor (GimpDisplayShell *shell)
{ {
GimpStatusbar *statusbar; GimpStatusbar *statusbar;
GimpSessionInfo *session_info; GimpSessionInfo *session_info;

View File

@ -19,6 +19,8 @@
#define __GIMP_DISPLAY_SHELL_CURSOR_H__ #define __GIMP_DISPLAY_SHELL_CURSOR_H__
/* functions dealing with the normal windowing system cursor */
void gimp_display_shell_set_cursor (GimpDisplayShell *shell, void gimp_display_shell_set_cursor (GimpDisplayShell *shell,
GimpCursorType cursor_type, GimpCursorType cursor_type,
GimpToolCursorType tool_cursor, GimpToolCursorType tool_cursor,
@ -28,13 +30,18 @@ void gimp_display_shell_set_override_cursor (GimpDisplayShell *shell,
GimpCursorType cursor_type); GimpCursorType cursor_type);
void gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell); void gimp_display_shell_unset_override_cursor (GimpDisplayShell *shell);
void gimp_display_shell_update_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, GimpCursorPrecision precision,
gint display_x, gint display_x,
gint display_y, gint display_y,
gdouble image_x, gdouble image_x,
gdouble image_y); gdouble image_y);
void gimp_display_shell_clear_cursor (GimpDisplayShell *shell); void gimp_display_shell_clear_software_cursor (GimpDisplayShell *shell);
#endif /* __GIMP_DISPLAY_SHELL_CURSOR_H__ */ #endif /* __GIMP_DISPLAY_SHELL_CURSOR_H__ */