From d14fef384a435471860130f7337d5dea5bb824a0 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 14 Oct 2015 16:05:27 +0200 Subject: Gtk3 places-sidebar: fixes accidental device eject --- src/caja-places-sidebar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c index 24ab023e..ce7bccdf 100644 --- a/src/caja-places-sidebar.c +++ b/src/caja-places-sidebar.c @@ -1021,6 +1021,11 @@ over_eject_button (CajaPlacesSidebar *sidebar, eject_button_size = caja_get_icon_size_for_stock_size (GTK_ICON_SIZE_MENU); if (x - total_width >= 0 && +#if GTK_CHECK_VERSION (3, 0, 0) + /* fix unwanted unmount requests if clicking on the label */ + x >= total_width - eject_button_size && + x >= 80 && +#endif x - total_width <= eject_button_size) { return TRUE; } -- cgit v1.2.1