[nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 13/35] list-view: Drop ignore_button_release
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-step-event-controllers: 13/35] list-view: Drop ignore_button_release
- Date: Wed, 22 Dec 2021 01:38:49 +0000 (UTC)
commit ebd837f004140a64c03c0e39a17076bc8d89fe96
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 cc8eb6f65..2e26247dc 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -582,7 +582,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 */
@@ -757,7 +756,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)
{
@@ -790,10 +788,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)
@@ -867,7 +861,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]