[gtk+] gtktreeview: don't handle extra mouse buttons
- From: Nelson BenÃtez LeÃn <nbenitez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtktreeview: don't handle extra mouse buttons
- Date: Wed, 4 Apr 2012 14:59:20 +0000 (UTC)
commit 45a5151f940399a0d53109b9ae36e6eed27c21f7
Author: Nelson Benitez Leon <nbenitezl gmail com>
Date: Tue Apr 3 17:33:15 2012 +0200
gtktreeview: don't handle extra mouse buttons
Don't handle mouse button events greater than 5 so
they can bubble up to be used by the application.
This was causing nautilus list view to not go forward
and backwards when pressing the extra mouse buttons
designated for that.
Fixes bug 673441
Signed-off-by: Nelson Benitez Leon <nbenitezl gmail com>
gtk/gtktreeview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index b9b90ab..c3ec3d6 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2876,6 +2876,10 @@ gtk_tree_view_button_press (GtkWidget *widget,
"horizontal-separator", &horizontal_separator,
NULL);
+ /* Don't handle extra mouse buttons events, let them bubble up */
+ if (event->button > 5)
+ return FALSE;
+
/* Because grab_focus can cause reentrancy, we delay grab_focus until after
* we're done handling the button press.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]