mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
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:
parent
d74a08b80f
commit
c619c86250
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user