summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.c
diff options
context:
space:
mode:
authorMartin Matuska <[email protected]>2016-08-05 14:58:37 +0200
committerraveit65 <[email protected]>2016-10-16 11:50:33 +0200
commit625a06c0a0781025693a6299b721b6bc7a065c1a (patch)
tree1252ca50706bd304cd5632d9d96e227557e6ea42 /eel/eel-canvas.c
parentdffb0850e530855fe67a4a6e8768c4b9ecf17a62 (diff)
downloadcaja-625a06c0a0781025693a6299b721b6bc7a065c1a.tar.bz2
caja-625a06c0a0781025693a6299b721b6bc7a065c1a.tar.xz
support back and forward mouse buttons to navigate
Fixes https://github.com/mate-desktop/caja/issues/78 Co-Authored-By: Oliver Joos <[email protected]> Co-Authored-By: Nelson Benitez Leon <[email protected]>
Diffstat (limited to 'eel/eel-canvas.c')
-rw-r--r--eel/eel-canvas.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c
index 74132149..162c0b44 100644
--- a/eel/eel-canvas.c
+++ b/eel/eel-canvas.c
@@ -3083,6 +3083,12 @@ eel_canvas_button (GtkWidget *widget, GdkEventButton *event)
canvas = EEL_CANVAS (widget);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ /* Don't handle extra mouse button events */
+ if (event->button > 5)
+ return FALSE;
+#endif
+
/*
* dispatch normally regardless of the event's window if an item has
* has a pointer grab in effect