summaryrefslogtreecommitdiff
path: root/libcaja-private
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 /libcaja-private
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 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-container.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 44ccc05d..3e1f7915 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -4788,6 +4788,9 @@ button_press_event (GtkWidget *widget,
container = CAJA_ICON_CONTAINER (widget);
container->details->button_down_time = event->time;
+#if !GTK_CHECK_VERSION(3, 0, 0)
+ clicked_on_icon = FALSE;
+#endif
/* Forget about the old keyboard selection now that we've started mousing. */
clear_keyboard_focus (container);
@@ -4799,8 +4802,15 @@ button_press_event (GtkWidget *widget,
return TRUE;
}
+#if GTK_CHECK_VERSION(3, 0, 0)
/* Invoke the canvas event handler and see if an item picks up the event. */
clicked_on_icon = GTK_WIDGET_CLASS (caja_icon_container_parent_class)->button_press_event (widget, event);
+#else
+ if (event->button < 6) { /* Don't let the eel canvas consume extra button events, see gnome bug 660006 */
+ /* Invoke the canvas event handler and see if an item picks up the event. */
+ clicked_on_icon = GTK_WIDGET_CLASS (caja_icon_container_parent_class)->button_press_event (widget, event);
+ }
+#endif
/* Move focus to icon container, unless we're still renaming (to avoid exiting
* renaming mode)