[nautilus/wip/antoniof/switch-to-gtk4: 6/33] general: Discard const qualifier for GdkEvent




commit c6f387a469fdb46d5a4bda79fb3e7750b946b5f1
Author: António Fernandes <antoniof gnome org>
Date:   Fri Dec 31 13:08:22 2021 +0000

    general: Discard const qualifier for GdkEvent
    
    The struct members are private now, so this is meaningless and the API
    no longer expects it.

 src/nautilus-list-view-dnd.c | 2 +-
 src/nautilus-list-view-dnd.h | 2 +-
 src/nautilus-list-view.c     | 8 ++++----
 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]