diff options
author | António Fernandes <antoniof@gnome.org> | 2021-12-31 13:08:22 +0000 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-01-05 12:55:14 +0000 |
commit | 255038df48e9e00c13952e038ead9c51605b1a98 (patch) | |
tree | 26008b05485442af98ed001f9026868e1887fdb1 | |
parent | ce3cd0072bc1e4babb323acf091b2f1e478bc44f (diff) | |
download | nautilus-255038df48e9e00c13952e038ead9c51605b1a98.tar.gz |
general: Discard const qualifier for GdkEvent
The struct members are private now, so this is meaningless and the API
no longer expects it.
-rw-r--r-- | src/nautilus-list-view-dnd.c | 2 | ||||
-rw-r--r-- | src/nautilus-list-view-dnd.h | 2 | ||||
-rw-r--r-- | src/nautilus-list-view.c | 8 | ||||
-rw-r--r-- | src/nautilus-window.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/nautilus-list-view-dnd.c b/src/nautilus-list-view-dnd.c index 9941642bd..cef6192c5 100644 --- a/src/nautilus-list-view-dnd.c +++ b/src/nautilus-list-view-dnd.c @@ -273,7 +273,7 @@ void nautilus_list_view_dnd_drag_begin (NautilusListView *list_view, gdouble offset_x, gdouble offset_y, - const GdkEvent *event) + GdkEvent *event) { if (list_view->details->drag_button == 0) { diff --git a/src/nautilus-list-view-dnd.h b/src/nautilus-list-view-dnd.h index 97a7d2112..88ade6770 100644 --- a/src/nautilus-list-view-dnd.h +++ b/src/nautilus-list-view-dnd.h @@ -29,7 +29,7 @@ void nautilus_list_view_dnd_init (NautilusListView *list_view); void nautilus_list_view_dnd_drag_begin (NautilusListView *list_view, gdouble offset_x, gdouble offset_y, - const GdkEvent *event); + GdkEvent *event); NautilusDragInfo * nautilus_list_view_dnd_get_drag_source_data (NautilusListView *list_view, GdkDragContext *context); diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c index d410efbc0..a372d24c1 100644 --- a/src/nautilus-list-view.c +++ b/src/nautilus-list-view.c @@ -229,7 +229,7 @@ activate_selected_items_alternate (NautilusListView *view, } static gboolean -button_event_modifies_selection (const GdkEvent *event) +button_event_modifies_selection (GdkEvent *event) { GdkModifierType state; @@ -464,7 +464,7 @@ on_tree_view_multi_press_gesture_pressed (GtkGestureMultiPress *gesture, gint bin_x; gint bin_y; GdkEventSequence *sequence; - const GdkEvent *event; + GdkEvent *event; gboolean on_expander, show_expanders; gboolean is_simple_click, path_selected; NautilusFile *file; @@ -722,7 +722,7 @@ on_tree_view_multi_press_gesture_released (GtkGestureMultiPress *gesture, NautilusListView *view; guint button; GdkEventSequence *sequence; - const GdkEvent *event; + GdkEvent *event; GtkTreeView *tree_view; GtkTreeSelection *selection; gint x_in_bin; @@ -1955,7 +1955,7 @@ on_tree_view_drag_gesture_drag_update (GtkGestureDrag *gesture, { #if 0 && NAUTILUS_DND_NEEDS_GTK4_REIMPLEMENTATION GdkEventSequence *sequence; - const GdkEvent *event; + GdkEvent *event; NautilusListView *list_view; sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)); diff --git a/src/nautilus-window.c b/src/nautilus-window.c index e19007c2c..4a738fa87 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -1789,7 +1789,7 @@ notebook_button_press_cb (GtkGestureMultiPress *gesture, gint tab_clicked; guint button; GdkEventSequence *sequence; - const GdkEvent *event; + GdkEvent *event; GdkModifierType state; if (n_press != 1) |