From c619c862503ccf54c9afbdb0708a3376ce1728fb Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Wed, 11 Nov 2015 14:43:55 +0100 Subject: [PATCH] filechooser: ignore double clicks on the selected item Since we are now interpreting button press events and make our own double-click determination, we should not handle double-click events that are generated by GDK. https://bugzilla.gnome.org/show_bug.cgi?id=757950 --- gtk/gtkfilechooserwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 387f61831e..b10dd2e68f 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -2403,6 +2403,7 @@ list_button_press_event_cb (GtkWidget *widget, get_selection_modifiers (widget, event, &modify, &extend); if (!is_touchscreen && !modify && !extend && + event->type == GDK_BUTTON_PRESS && event->button == GDK_BUTTON_PRIMARY && gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (priv->browse_files_tree_view), event->x, event->y,