[nautilus/wip/antoniof/new-list-view: 9/15] view-icon-controller: Don't claim event on single-click activation




commit 98e6392422491601cb950bcca4c65e3eea0ade62
Author: António Fernandes <antoniof gnome org>
Date:   Wed May 25 12:43:59 2022 +0100

    view-icon-controller: Don't claim event on single-click activation
    
    It causes a warning:
    
    `gdk_event_get_modifier_state: assertion 'GDK_IS_EVENT (event)' failed`
    
    And we don't need to claim it anymore, because the background click
    event is already denied.

 src/nautilus-view-icon-controller.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/nautilus-view-icon-controller.c b/src/nautilus-view-icon-controller.c
index 20aba99d0..59bc6a3cb 100644
--- a/src/nautilus-view-icon-controller.c
+++ b/src/nautilus-view-icon-controller.c
@@ -877,7 +877,6 @@ on_item_click_released (GtkGestureClick *gesture,
         gtk_selection_model_select_item (GTK_SELECTION_MODEL (self->model), i, TRUE);
 
         activate_selection_on_click (self, FALSE);
-        gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
     }
 
     self->activate_on_release = FALSE;


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