app: sprinkle const qualifiers in the tool event callback functions

This commit is contained in:
Michael Natterer
2011-05-31 23:17:29 +02:00
parent bed298be13
commit 1bff2c8df2
5 changed files with 54 additions and 54 deletions

View File

@ -34,7 +34,7 @@
gboolean
gimp_display_shell_pointer_grab (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
GdkEventMask event_mask)
{
GdkGrabStatus status;
@ -81,7 +81,7 @@ gimp_display_shell_pointer_grab (GimpDisplayShell *shell,
void
gimp_display_shell_pointer_ungrab (GimpDisplayShell *shell,
GdkEvent *event)
const GdkEvent *event)
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (event != NULL);
@ -95,7 +95,7 @@ gimp_display_shell_pointer_ungrab (GimpDisplayShell *shell,
gboolean
gimp_display_shell_keyboard_grab (GimpDisplayShell *shell,
GdkEvent *event)
const GdkEvent *event)
{
GdkGrabStatus status;
@ -122,7 +122,7 @@ gimp_display_shell_keyboard_grab (GimpDisplayShell *shell,
void
gimp_display_shell_keyboard_ungrab (GimpDisplayShell *shell,
GdkEvent *event)
const GdkEvent *event)
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
g_return_if_fail (event != NULL);

View File

@ -22,15 +22,15 @@
gboolean gimp_display_shell_pointer_grab (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
GdkEventMask event_mask);
void gimp_display_shell_pointer_ungrab (GimpDisplayShell *shell,
GdkEvent *event);
const GdkEvent *event);
gboolean gimp_display_shell_keyboard_grab (GimpDisplayShell *shell,
GdkEvent *event);
const GdkEvent *event);
void gimp_display_shell_keyboard_ungrab (GimpDisplayShell *shell,
GdkEvent *event);
const GdkEvent *event);
#endif /* __GIMP_DISPLAY_SHELL_GRAB_H__ */

View File

@ -79,13 +79,13 @@ static void gimp_display_shell_start_scrolling (GimpDisplayShell
static void gimp_display_shell_stop_scrolling (GimpDisplayShell *shell);
static void gimp_display_shell_space_pressed (GimpDisplayShell *shell,
GdkEvent *event);
const GdkEvent *event);
static void gimp_display_shell_space_released (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
const GimpCoords *image_coords);
static gboolean gimp_display_shell_tab_pressed (GimpDisplayShell *shell,
GdkEventKey *event);
const GdkEventKey *event);
static void gimp_display_shell_update_focus (GimpDisplayShell *shell,
gboolean focus_in,
@ -102,7 +102,7 @@ static gboolean gimp_display_shell_initialize_tool (GimpDisplayShell
GdkModifierType state);
static void gimp_display_shell_get_event_coords (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
GimpCoords *display_coords,
GdkModifierType *state,
guint32 *time);
@ -1419,7 +1419,7 @@ gimp_display_shell_stop_scrolling (GimpDisplayShell *shell)
static void
gimp_display_shell_space_pressed (GimpDisplayShell *shell,
GdkEvent *event)
const GdkEvent *event)
{
Gimp *gimp = gimp_display_get_gimp (shell->display);
@ -1486,7 +1486,7 @@ gimp_display_shell_space_pressed (GimpDisplayShell *shell,
static void
gimp_display_shell_space_released (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
const GimpCoords *image_coords)
{
Gimp *gimp = gimp_display_get_gimp (shell->display);
@ -1537,7 +1537,7 @@ gimp_display_shell_space_released (GimpDisplayShell *shell,
static gboolean
gimp_display_shell_tab_pressed (GimpDisplayShell *shell,
GdkEventKey *kevent)
const GdkEventKey *kevent)
{
GimpImageWindow *window = gimp_display_shell_get_window (shell);
GimpUIManager *manager = gimp_image_window_get_ui_manager (window);
@ -1712,7 +1712,7 @@ gimp_display_shell_initialize_tool (GimpDisplayShell *shell,
static void
gimp_display_shell_get_event_coords (GimpDisplayShell *shell,
GdkEvent *event,
const GdkEvent *event,
GimpCoords *display_coords,
GdkModifierType *state,
guint32 *time)

View File

@ -33,7 +33,7 @@ static const GimpCoords default_coords = GIMP_COORDS_DEFAULT_VALUES;
gboolean
gimp_device_info_get_event_coords (GimpDeviceInfo *info,
GdkWindow *window,
GdkEvent *event,
const GdkEvent *event,
GimpCoords *coords)
{
gdouble x;
@ -178,7 +178,7 @@ gimp_device_info_get_time_coords (GimpDeviceInfo *info,
gboolean
gimp_device_info_get_event_state (GimpDeviceInfo *info,
GdkWindow *window,
GdkEvent *event,
const GdkEvent *event,
GdkModifierType *state)
{
if (gdk_event_get_state (event, state))

View File

@ -21,7 +21,7 @@
gboolean gimp_device_info_get_event_coords (GimpDeviceInfo *info,
GdkWindow *window,
GdkEvent *event,
const GdkEvent *event,
GimpCoords *coords);
void gimp_device_info_get_device_coords (GimpDeviceInfo *info,
GdkWindow *window,
@ -33,7 +33,7 @@ void gimp_device_info_get_time_coords (GimpDeviceInfo *info,
gboolean gimp_device_info_get_event_state (GimpDeviceInfo *info,
GdkWindow *window,
GdkEvent *event,
const GdkEvent *event,
GdkModifierType *state);
void gimp_device_info_get_device_state (GimpDeviceInfo *info,
GdkWindow *window,