Commit ae375b34 authored by Nelson Benítez León's avatar Nelson Benítez León Committed by Nelson Benítez León

list-view: don't handle extra mouse buttons events

Don't handle extra mouse button events so they can bubble up
through GtkTreeview till NautilusWindow where they are handled
to navigate the view forward and backward.

Part of bug 660006
Signed-off-by: Nelson Benítez León's avatarNelson Benitez Leon <>
parent 3deb33d4
...@@ -650,6 +650,11 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba ...@@ -650,6 +650,11 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba
selection = gtk_tree_view_get_selection (tree_view); selection = gtk_tree_view_get_selection (tree_view);
blank_click = FALSE; blank_click = FALSE;
/* Don't handle extra mouse buttons here */
if (event->button > 5) {
return FALSE;
if (event->window != gtk_tree_view_get_bin_window (tree_view)) { if (event->window != gtk_tree_view_get_bin_window (tree_view)) {
return FALSE; return FALSE;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment