diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-16 11:09:02 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-21 00:51:02 -0500 |
commit | 31bf9da63acaa2bfb9d2163c80289caa618a06ca (patch) | |
tree | 539ce0bc412aa52a18116b2c53ce6faae7e36d05 /gtk/gtkiconview.c | |
parent | 1026bfb1ac6cfb5b47012b0a7f43ab85dabfbd91 (diff) | |
download | gtk+-31bf9da63acaa2bfb9d2163c80289caa618a06ca.tar.gz |
Strip const from GdkEvent
Events are refcounted structs, and we generally don't
pass these as const.
Diffstat (limited to 'gtk/gtkiconview.c')
-rw-r--r-- | gtk/gtkiconview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 7b84f53c35..1773e0fa73 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -2127,7 +2127,7 @@ gtk_icon_view_button_press (GtkGestureClick *gesture, GtkCellRenderer *cell = NULL, *cursor_cell = NULL; int button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture)); GdkEventSequence *sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)); - const GdkEventButton *event = (const GdkEventButton *)gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence); + GdkEventButton *event = (GdkEventButton *)gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence); GdkModifierType state; if (!gtk_widget_has_focus (widget)) @@ -2275,7 +2275,7 @@ gtk_icon_view_button_press (GtkGestureClick *gesture, } static gboolean -button_event_modifies_selection (const GdkEventButton *event) +button_event_modifies_selection (GdkEventButton *event) { guint state; @@ -2293,7 +2293,7 @@ gtk_icon_view_button_release (GtkGestureClick *gesture, GtkIconView *icon_view = user_data; int button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture)); GdkEventSequence *sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)); - const GdkEventButton *event = (const GdkEventButton *)gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence); + GdkEventButton *event = (GdkEventButton *)gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence); if (icon_view->priv->pressed_button == button) icon_view->priv->pressed_button = -1; |