[nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 26/46] list-view: Drop ignore_button_release




commit 1a483da80d83805598f320c8d90795bb6ad6f374
Author: António Fernandes <antoniof gnome org>
Date:   Wed Aug 11 22:59:53 2021 +0100

    list-view: Drop ignore_button_release
    
    This has no effect nowadays.

 src/nautilus-list-view-private.h | 1 -
 src/nautilus-list-view.c         | 8 +-------
 2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/nautilus-list-view-private.h b/src/nautilus-list-view-private.h
index c874c38f7..0ca8b70b3 100644
--- a/src/nautilus-list-view-private.h
+++ b/src/nautilus-list-view-private.h
@@ -54,7 +54,6 @@ struct NautilusListViewDetails {
   int drag_y;
 
   gboolean drag_started;
-  gboolean ignore_button_release;
   gboolean row_selected_on_button_down;
   gboolean active;
   NautilusDragInfo *drag_source_info;
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index 352f2a93e..4803f33a9 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -581,7 +581,6 @@ on_tree_view_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
         return;
     }
 
-    view->details->ignore_button_release = FALSE;
     is_simple_click = ((button == GDK_BUTTON_PRIMARY || button == GDK_BUTTON_MIDDLE) && (n_press == 1));
 
     /* No item at this position */
@@ -756,7 +755,6 @@ on_tree_view_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
             if (path_selected)
             {
                 call_parent = on_expander;
-                view->details->ignore_button_release = on_expander;
             }
             else if ((state & GDK_CONTROL_MASK) != 0)
             {
@@ -789,10 +787,6 @@ on_tree_view_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
                 }
                 g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free);
             }
-            else
-            {
-                view->details->ignore_button_release = on_expander;
-            }
         }
 
         if (is_simple_click && on_expander)
@@ -866,7 +860,7 @@ on_tree_view_multi_press_gesture_released (GtkGestureMultiPress *gesture,
     }
 
     view->details->drag_button = 0;
-    if (!view->details->drag_started && !view->details->ignore_button_release)
+    if (!view->details->drag_started)
     {
         GdkEventSequence *sequence;
         const GdkEvent *event;


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