[nautilus] list-view: don't handle extra mouse buttons events
- From: Nelson BenÃtez LeÃn <nbenitez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] list-view: don't handle extra mouse buttons events
- Date: Wed, 4 Apr 2012 14:44:13 +0000 (UTC)
commit ae375b34c28c157950069e8bae8e033f5c12a556
Author: Nelson Benitez Leon <nbenitezl gmail com>
Date: Tue Apr 3 17:08:14 2012 +0200
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 Benitez Leon <nbenitezl gmail com>
src/nautilus-list-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index fcf6c25..95faa2e 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -650,6 +650,11 @@ button_press_callback (GtkWidget *widget, GdkEventButton *event, gpointer callba
selection = gtk_tree_view_get_selection (tree_view);
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)) {
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]