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
This commit is contained in:
Paolo Borelli 2015-11-11 14:43:55 +01:00 committed by Matthias Clasen
parent d74a08b80f
commit c619c86250

View File

@ -2403,6 +2403,7 @@ list_button_press_event_cb (GtkWidget *widget,
get_selection_modifiers (widget, event, &modify, &extend); get_selection_modifiers (widget, event, &modify, &extend);
if (!is_touchscreen && if (!is_touchscreen &&
!modify && !extend && !modify && !extend &&
event->type == GDK_BUTTON_PRESS &&
event->button == GDK_BUTTON_PRIMARY && event->button == GDK_BUTTON_PRIMARY &&
gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (priv->browse_files_tree_view), gtk_tree_view_get_path_at_pos (GTK_TREE_VIEW (priv->browse_files_tree_view),
event->x, event->y, event->x, event->y,