Commit 31bf9da6 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Strip const from GdkEvent

Events are refcounted structs, and we generally don't
pass these as const.
parent 1026bfb1
......@@ -135,7 +135,7 @@ clicked (GtkGestureClick *gesture,
gpointer data)
{
GtkWidget *window;
const GdkEvent *event;
GdkEvent *event;
GdkModifierType state;
window = gtk_widget_get_ancestor (gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (gesture)), GTK_TYPE_WINDOW);
......
......@@ -133,7 +133,7 @@ gdk_display_real_opened (GdkDisplay *display)
static void
gdk_display_real_event_data_copy (GdkDisplay *display,
const GdkEvent *src,
GdkEvent *src,
GdkEvent *dst)
{
}
......@@ -484,7 +484,7 @@ gdk_display_peek_event (GdkDisplay *display)
**/
void
gdk_display_put_event (GdkDisplay *display,
const GdkEvent *event)
GdkEvent *event)
{
g_return_if_fail (GDK_IS_DISPLAY (display));
g_return_if_fail (event != NULL);
......@@ -688,7 +688,7 @@ switch_to_pointer_grab (GdkDisplay *display,
void
_gdk_display_update_last_event (GdkDisplay *display,
const GdkEvent *event)
GdkEvent *event)
{
if (gdk_event_get_time (event) != GDK_CURRENT_TIME)
display->last_event_time = gdk_event_get_time (event);
......@@ -1290,7 +1290,7 @@ _gdk_display_unpause_events (GdkDisplay *display)
void
_gdk_display_event_data_copy (GdkDisplay *display,
const GdkEvent *event,
GdkEvent *event,
GdkEvent *new_event)
{
GDK_DISPLAY_GET_CLASS (display)->event_data_copy (display, event, new_event);
......
......@@ -72,7 +72,7 @@ GDK_AVAILABLE_IN_ALL
GdkEvent* gdk_display_peek_event (GdkDisplay *display);
GDK_AVAILABLE_IN_ALL
void gdk_display_put_event (GdkDisplay *display,
const GdkEvent *event);
GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_display_has_pending (GdkDisplay *display);
......
......@@ -136,7 +136,7 @@ struct _GdkDisplayClass
const gchar * (*get_startup_notification_id) (GdkDisplay *display);
void (*event_data_copy) (GdkDisplay *display,
const GdkEvent *event,
GdkEvent *event,
GdkEvent *new_event);
void (*event_data_free) (GdkDisplay *display,
GdkEvent *event);
......@@ -191,7 +191,7 @@ typedef void (* GdkDisplayPointerInfoForeach) (GdkDisplay *display,
gpointer user_data);
void _gdk_display_update_last_event (GdkDisplay *display,
const GdkEvent *event);
GdkEvent *event);
void _gdk_display_device_grab_update (GdkDisplay *display,
GdkDevice *device,
GdkDevice *source_device,
......@@ -227,7 +227,7 @@ gulong _gdk_display_get_next_serial (GdkDisplay *display
void _gdk_display_pause_events (GdkDisplay *display);
void _gdk_display_unpause_events (GdkDisplay *display);
void _gdk_display_event_data_copy (GdkDisplay *display,
const GdkEvent *event,
GdkEvent *event,
GdkEvent *new_event);
void _gdk_display_event_data_free (GdkDisplay *display,
GdkEvent *event);
......
......@@ -49,7 +49,7 @@ struct _GdkDragClass {
void (*dnd_finished) (GdkDrag *drag);
gboolean (*handle_event) (GdkDrag *drag,
const GdkEvent *event);
GdkEvent *event);
};
struct _GdkDrag {
......
......@@ -265,7 +265,7 @@ _gdk_event_unqueue (GdkDisplay *display)
static void
gdk_event_push_history (GdkEvent *event,
const GdkEvent *history_event)
GdkEvent *history_event)
{
GdkTimeCoord *hist;
GdkDevice *device;
......@@ -468,7 +468,7 @@ gdk_event_free (GdkEvent *event)
* Returns: (transfer none): The #GdkSurface associated with the event
*/
GdkSurface *
gdk_event_get_surface (const GdkEvent *event)
gdk_event_get_surface (GdkEvent *event)
{
g_return_val_if_fail (event != NULL, NULL);
......@@ -485,7 +485,7 @@ gdk_event_get_surface (const GdkEvent *event)
* Returns: time stamp field from @event
**/
guint32
gdk_event_get_time (const GdkEvent *event)
gdk_event_get_time (GdkEvent *event)
{
if (event)
switch (event->any.type)
......@@ -555,7 +555,7 @@ gdk_event_get_time (const GdkEvent *event)
* Returns: %TRUE if there was a state field in the event
**/
gboolean
gdk_event_get_state (const GdkEvent *event,
gdk_event_get_state (GdkEvent *event,
GdkModifierType *state)
{
g_return_val_if_fail (state != NULL, FALSE);
......@@ -629,7 +629,7 @@ gdk_event_get_state (const GdkEvent *event,
* Returns: %TRUE if the event delivered event surface coordinates
**/
gboolean
gdk_event_get_coords (const GdkEvent *event,
gdk_event_get_coords (GdkEvent *event,
gdouble *x_win,
gdouble *y_win)
{
......@@ -707,7 +707,7 @@ gdk_event_get_coords (const GdkEvent *event,
* Returns: %TRUE if the event delivered a button number
**/
gboolean
gdk_event_get_button (const GdkEvent *event,
gdk_event_get_button (GdkEvent *event,
guint *button)
{
gboolean fetched = TRUE;
......@@ -746,7 +746,7 @@ gdk_event_get_button (const GdkEvent *event,
* Returns: %TRUE if the event delivered a click count
*/
gboolean
gdk_event_get_click_count (const GdkEvent *event,
gdk_event_get_click_count (GdkEvent *event,
guint *click_count)
{
gboolean fetched = TRUE;
......@@ -781,7 +781,7 @@ gdk_event_get_click_count (const GdkEvent *event,
* Returns: %TRUE if the event delivered a key symbol
*/
gboolean
gdk_event_get_keyval (const GdkEvent *event,
gdk_event_get_keyval (GdkEvent *event,
guint *keyval)
{
gboolean fetched = TRUE;
......@@ -816,7 +816,7 @@ gdk_event_get_keyval (const GdkEvent *event,
* Returns: %TRUE if the event delivered a hardware keycode
*/
gboolean
gdk_event_get_keycode (const GdkEvent *event,
gdk_event_get_keycode (GdkEvent *event,
guint16 *keycode)
{
gboolean fetched = TRUE;
......@@ -849,7 +849,7 @@ gdk_event_get_keycode (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_key_group (const GdkEvent *event,
gdk_event_get_key_group (GdkEvent *event,
guint *group)
{
gboolean fetched = TRUE;
......@@ -880,7 +880,7 @@ gdk_event_get_key_group (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_key_is_modifier (const GdkEvent *event,
gdk_event_get_key_is_modifier (GdkEvent *event,
gboolean *is_modifier)
{
gboolean fetched = TRUE;
......@@ -910,7 +910,7 @@ gdk_event_get_key_is_modifier (const GdkEvent *event,
* Returns: %TRUE if the event delivered a scroll direction
*/
gboolean
gdk_event_get_scroll_direction (const GdkEvent *event,
gdk_event_get_scroll_direction (GdkEvent *event,
GdkScrollDirection *direction)
{
gboolean fetched = TRUE;
......@@ -946,7 +946,7 @@ gdk_event_get_scroll_direction (const GdkEvent *event,
* Returns: %TRUE if the event contains smooth scroll information
**/
gboolean
gdk_event_get_scroll_deltas (const GdkEvent *event,
gdk_event_get_scroll_deltas (GdkEvent *event,
gdouble *delta_x,
gdouble *delta_y)
{
......@@ -994,7 +994,7 @@ gdk_event_get_scroll_deltas (const GdkEvent *event,
* Returns: %TRUE if the event is a scroll stop event
*/
gboolean
gdk_event_is_scroll_stop_event (const GdkEvent *event)
gdk_event_is_scroll_stop_event (GdkEvent *event)
{
return event->scroll.is_stop;
}
......@@ -1011,7 +1011,7 @@ gdk_event_is_scroll_stop_event (const GdkEvent *event)
* Returns: %TRUE if the specified axis was found, otherwise %FALSE
**/
gboolean
gdk_event_get_axis (const GdkEvent *event,
gdk_event_get_axis (GdkEvent *event,
GdkAxisUse axis_use,
gdouble *value)
{
......@@ -1093,7 +1093,7 @@ gdk_event_get_axis (const GdkEvent *event,
* Returns: (nullable) (transfer none): a #GdkDevice, or %NULL.
**/
GdkDevice *
gdk_event_get_device (const GdkEvent *event)
gdk_event_get_device (GdkEvent *event)
{
g_return_val_if_fail (event != NULL, NULL);
......@@ -1117,7 +1117,7 @@ gdk_event_get_device (const GdkEvent *event)
* Returns: (nullable) (transfer none): a #GdkDevice, or %NULL.
**/
GdkDevice *
gdk_event_get_source_device (const GdkEvent *event)
gdk_event_get_source_device (GdkEvent *event)
{
g_return_val_if_fail (event != NULL, NULL);
......@@ -1145,13 +1145,13 @@ gdk_event_get_source_device (const GdkEvent *event)
* Returns: %TRUE if the event should trigger a context menu.
**/
gboolean
gdk_event_triggers_context_menu (const GdkEvent *event)
gdk_event_triggers_context_menu (GdkEvent *event)
{
g_return_val_if_fail (event != NULL, FALSE);
if (event->any.type == GDK_BUTTON_PRESS)
{
const GdkEventButton *bevent = (const GdkEventButton *) event;
GdkEventButton *bevent = (GdkEventButton *) event;
GdkDisplay *display;
GdkModifierType modifier;
......@@ -1310,7 +1310,7 @@ gdk_events_get_center (GdkEvent *event1,
* Returns: (transfer none) (nullable): a #GdkDisplay
*/
GdkDisplay *
gdk_event_get_display (const GdkEvent *event)
gdk_event_get_display (GdkEvent *event)
{
if (event->any.display)
return event->any.display;
......@@ -1332,7 +1332,7 @@ gdk_event_get_display (const GdkEvent *event)
* Returns: (transfer none): the event sequence that the event belongs to
*/
GdkEventSequence *
gdk_event_get_event_sequence (const GdkEvent *event)
gdk_event_get_event_sequence (GdkEvent *event)
{
if (!event)
return NULL;
......@@ -1402,7 +1402,7 @@ G_DEFINE_BOXED_TYPE (GdkEventSequence, gdk_event_sequence,
* Returns: a #GdkEventType
*/
GdkEventType
gdk_event_get_event_type (const GdkEvent *event)
gdk_event_get_event_type (GdkEvent *event)
{
g_return_val_if_fail (event != NULL, 0);
......@@ -1418,7 +1418,7 @@ gdk_event_get_event_type (const GdkEvent *event)
* Returns: (transfer none): The #GdkSeat of this event
**/
GdkSeat *
gdk_event_get_seat (const GdkEvent *event)
gdk_event_get_seat (GdkEvent *event)
{
GdkDevice *device;
......@@ -1443,7 +1443,7 @@ gdk_event_get_seat (const GdkEvent *event)
* Returns: (transfer none): The current device tool, or %NULL
**/
GdkDeviceTool *
gdk_event_get_device_tool (const GdkEvent *event)
gdk_event_get_device_tool (GdkEvent *event)
{
if (event->any.type == GDK_BUTTON_PRESS ||
event->any.type == GDK_BUTTON_RELEASE)
......@@ -1490,7 +1490,7 @@ gdk_event_get_scancode (GdkEvent *event)
* Returns: %TRUE if the event was sent explicitly
*/
gboolean
gdk_event_is_sent (const GdkEvent *event)
gdk_event_is_sent (GdkEvent *event)
{
if (!event)
return FALSE;
......@@ -1507,7 +1507,7 @@ gdk_event_is_sent (const GdkEvent *event)
* Returns: (transfer none) (nullable): the drop
**/
GdkDrop *
gdk_event_get_drop (const GdkEvent *event)
gdk_event_get_drop (GdkEvent *event)
{
if (!event)
return FALSE;
......@@ -1533,7 +1533,7 @@ gdk_event_get_drop (const GdkEvent *event)
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_crossing_mode (const GdkEvent *event,
gdk_event_get_crossing_mode (GdkEvent *event,
GdkCrossingMode *mode)
{
if (!event)
......@@ -1564,7 +1564,7 @@ gdk_event_get_crossing_mode (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_crossing_detail (const GdkEvent *event,
gdk_event_get_crossing_detail (GdkEvent *event,
GdkNotifyType *detail)
{
if (!event)
......@@ -1595,7 +1595,7 @@ gdk_event_get_crossing_detail (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touchpad_gesture_phase (const GdkEvent *event,
gdk_event_get_touchpad_gesture_phase (GdkEvent *event,
GdkTouchpadGesturePhase *phase)
{
if (!event)
......@@ -1625,7 +1625,7 @@ gdk_event_get_touchpad_gesture_phase (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touchpad_gesture_n_fingers (const GdkEvent *event,
gdk_event_get_touchpad_gesture_n_fingers (GdkEvent *event,
guint *n_fingers)
{
if (!event)
......@@ -1656,7 +1656,7 @@ gdk_event_get_touchpad_gesture_n_fingers (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touchpad_deltas (const GdkEvent *event,
gdk_event_get_touchpad_deltas (GdkEvent *event,
double *dx,
double *dy)
{
......@@ -1689,7 +1689,7 @@ gdk_event_get_touchpad_deltas (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touchpad_angle_delta (const GdkEvent *event,
gdk_event_get_touchpad_angle_delta (GdkEvent *event,
double *delta)
{
if (!event)
......@@ -1714,7 +1714,7 @@ gdk_event_get_touchpad_angle_delta (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touchpad_scale (const GdkEvent *event,
gdk_event_get_touchpad_scale (GdkEvent *event,
double *scale)
{
if (!event)
......@@ -1739,7 +1739,7 @@ gdk_event_get_touchpad_scale (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_touch_emulating_pointer (const GdkEvent *event,
gdk_event_get_touch_emulating_pointer (GdkEvent *event,
gboolean *emulating)
{
if (!event)
......@@ -1766,7 +1766,7 @@ gdk_event_get_touch_emulating_pointer (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_grab_surface (const GdkEvent *event,
gdk_event_get_grab_surface (GdkEvent *event,
GdkSurface **surface)
{
if (!event)
......@@ -1791,7 +1791,7 @@ gdk_event_get_grab_surface (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_focus_in (const GdkEvent *event,
gdk_event_get_focus_in (GdkEvent *event,
gboolean *focus_in)
{
if (!event)
......@@ -1817,7 +1817,7 @@ gdk_event_get_focus_in (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_pad_group_mode (const GdkEvent *event,
gdk_event_get_pad_group_mode (GdkEvent *event,
guint *group,
guint *mode)
{
......@@ -1859,7 +1859,7 @@ gdk_event_get_pad_group_mode (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_pad_button (const GdkEvent *event,
gdk_event_get_pad_button (GdkEvent *event,
guint *button)
{
if (!event)
......@@ -1886,7 +1886,7 @@ gdk_event_get_pad_button (const GdkEvent *event,
* Returns: %TRUE on success, otherwise %FALSE
**/
gboolean
gdk_event_get_pad_axis_value (const GdkEvent *event,
gdk_event_get_pad_axis_value (GdkEvent *event,
guint *index,
gdouble *value)
{
......@@ -1957,7 +1957,7 @@ gdk_event_get_axes (GdkEvent *event,
* of time and coordinates
*/
GList *
gdk_event_get_motion_history (const GdkEvent *event)
gdk_event_get_motion_history (GdkEvent *event)
{
if (event->any.type != GDK_MOTION_NOTIFY)
return NULL;
......
......@@ -341,58 +341,58 @@ GDK_AVAILABLE_IN_ALL
void gdk_event_unref (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkSurface *gdk_event_get_surface (const GdkEvent *event);
GdkSurface *gdk_event_get_surface (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
guint32 gdk_event_get_time (const GdkEvent *event);
guint32 gdk_event_get_time (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_state (const GdkEvent *event,
gboolean gdk_event_get_state (GdkEvent *event,
GdkModifierType *state);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_coords (const GdkEvent *event,
gboolean gdk_event_get_coords (GdkEvent *event,
gdouble *x_win,
gdouble *y_win);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_button (const GdkEvent *event,
gboolean gdk_event_get_button (GdkEvent *event,
guint *button);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_click_count (const GdkEvent *event,
gboolean gdk_event_get_click_count (GdkEvent *event,
guint *click_count);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_keyval (const GdkEvent *event,
gboolean gdk_event_get_keyval (GdkEvent *event,
guint *keyval);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_keycode (const GdkEvent *event,
gboolean gdk_event_get_keycode (GdkEvent *event,
guint16 *keycode);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_key_is_modifier (const GdkEvent *event,
gboolean gdk_event_get_key_is_modifier (GdkEvent *event,
gboolean *is_modifier);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_key_group (const GdkEvent *event,
gboolean gdk_event_get_key_group (GdkEvent *event,
guint *group);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_scroll_direction (const GdkEvent *event,
gboolean gdk_event_get_scroll_direction (GdkEvent *event,
GdkScrollDirection *direction);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_scroll_deltas (const GdkEvent *event,
gboolean gdk_event_get_scroll_deltas (GdkEvent *event,
gdouble *delta_x,
gdouble *delta_y);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_is_scroll_stop_event (const GdkEvent *event);
gboolean gdk_event_is_scroll_stop_event (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_axis (const GdkEvent *event,
gboolean gdk_event_get_axis (GdkEvent *event,
GdkAxisUse axis_use,
gdouble *value);
GDK_AVAILABLE_IN_ALL
GdkDevice* gdk_event_get_device (const GdkEvent *event);
GdkDevice* gdk_event_get_device (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkDevice* gdk_event_get_source_device (const GdkEvent *event);
GdkDevice* gdk_event_get_source_device (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_triggers_context_menu (const GdkEvent *event);
gboolean gdk_event_triggers_context_menu (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_events_get_distance (GdkEvent *event1,
......@@ -408,16 +408,16 @@ gboolean gdk_events_get_center (GdkEvent *event1,
gdouble *x,
gdouble *y);
GDK_AVAILABLE_IN_ALL
GdkDisplay *gdk_event_get_display (const GdkEvent *event);
GdkDisplay *gdk_event_get_display (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkEventSequence *gdk_event_get_event_sequence (const GdkEvent *event);
GdkEventSequence *gdk_event_get_event_sequence (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkEventType gdk_event_get_event_type (const GdkEvent *event);
GdkEventType gdk_event_get_event_type (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkSeat *gdk_event_get_seat (const GdkEvent *event);
GdkSeat *gdk_event_get_seat (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
void gdk_set_show_events (gboolean show_events);
......@@ -425,7 +425,7 @@ GDK_AVAILABLE_IN_ALL
gboolean gdk_get_show_events (void);
GDK_AVAILABLE_IN_ALL
GdkDeviceTool *gdk_event_get_device_tool (const GdkEvent *event);
GdkDeviceTool *gdk_event_get_device_tool (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
int gdk_event_get_scancode (GdkEvent *event);
......@@ -434,52 +434,52 @@ GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_pointer_emulated (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_is_sent (const GdkEvent *event);
gboolean gdk_event_is_sent (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
GdkDrop * gdk_event_get_drop (const GdkEvent *event);
GdkDrop * gdk_event_get_drop (GdkEvent *event);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_crossing_mode (const GdkEvent *event,
gboolean gdk_event_get_crossing_mode (GdkEvent *event,
GdkCrossingMode *mode);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_crossing_detail (const GdkEvent *event,
gboolean gdk_event_get_crossing_detail (GdkEvent *event,
GdkNotifyType *detail);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touchpad_gesture_phase (const GdkEvent *event,
gboolean gdk_event_get_touchpad_gesture_phase (GdkEvent *event,
GdkTouchpadGesturePhase *phase);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touchpad_gesture_n_fingers (const GdkEvent *event,
gboolean gdk_event_get_touchpad_gesture_n_fingers (GdkEvent *event,
guint *n_fingers);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touchpad_deltas (const GdkEvent *event,
gboolean gdk_event_get_touchpad_deltas (GdkEvent *event,
double *dx,
double *dy);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touchpad_angle_delta (const GdkEvent *event,
gboolean gdk_event_get_touchpad_angle_delta (GdkEvent *event,
double *delta);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touchpad_scale (const GdkEvent *event,
gboolean gdk_event_get_touchpad_scale (GdkEvent *event,
double *scale);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_touch_emulating_pointer (const GdkEvent *event,
gboolean gdk_event_get_touch_emulating_pointer (GdkEvent *event,
gboolean *emulating);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_grab_surface (const GdkEvent *event,
gboolean gdk_event_get_grab_surface (GdkEvent *event,
GdkSurface **surface);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_focus_in (const GdkEvent *event,
gboolean gdk_event_get_focus_in (GdkEvent *event,
gboolean *focus_in);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_pad_group_mode (const GdkEvent *event,
gboolean gdk_event_get_pad_group_mode (GdkEvent *event,
guint *group,
guint *mode);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_pad_button (const GdkEvent *event,
gboolean gdk_event_get_pad_button (GdkEvent *event,
guint *button);
GDK_AVAILABLE_IN_ALL
gboolean gdk_event_get_pad_axis_value (const GdkEvent *event,
gboolean gdk_event_get_pad_axis_value (GdkEvent *event,
guint *index,
gdouble *value);
GDK_AVAILABLE_IN_ALL
......@@ -487,7 +487,7 @@ gboolean gdk_event_get_axes (GdkEvent *event,
gdouble **axes,
guint *n_axes);
GDK_AVAILABLE_IN_ALL
GList * gdk_event_get_motion_history (const GdkEvent *event);
GList * gdk_event_get_motion_history (GdkEvent *event);
G_END_DECLS
......
......@@ -143,7 +143,7 @@ void _gdk_event_queue_flush (GdkDisplay *display);
void _gdk_event_button_generate (GdkDisplay *display,
GdkEvent *event);
void _gdk_windowing_event_data_copy (const GdkEvent *src,
void _gdk_windowing_event_data_copy (GdkEvent *src,
GdkEvent *dst);
void _gdk_windowing_event_data_free (GdkEvent *event);
......@@ -266,7 +266,7 @@ GdkGrabStatus gdk_seat_grab (GdkSeat *seat,
GdkSeatCapabilities capabilities,
gboolean owner_events,
GdkCursor *cursor,
const GdkEvent *event,
GdkEvent *event,
GdkSeatGrabPrepareFunc prepare_func,
gpointer prepare_func_data);
void gdk_seat_ungrab (GdkSeat *seat);
......
......@@ -286,7 +286,7 @@ gdk_seat_grab (GdkSeat *seat,
GdkSeatCapabilities capabilities,