diff options
author | Paolo Borelli <pborelli@gnome.org> | 2015-11-11 14:43:55 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-13 07:07:53 -0500 |
commit | c619c862503ccf54c9afbdb0708a3376ce1728fb (patch) | |
tree | 3d11adc6f7774b42f84170b94d641e1c4b428fc8 /gtk/gtkfilechooserwidget.c | |
parent | d74a08b80f54e018bc3141849e3d0fbbf6f583b0 (diff) | |
download | gtk+-c619c862503ccf54c9afbdb0708a3376ce1728fb.tar.gz |
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
Diffstat (limited to 'gtk/gtkfilechooserwidget.c')
-rw-r--r-- | gtk/gtkfilechooserwidget.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |