diff options
author | raveit65 <[email protected]> | 2015-10-14 16:05:27 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-10-14 16:05:27 +0200 |
commit | d14fef384a435471860130f7337d5dea5bb824a0 (patch) | |
tree | c9c5adbc95dcba3d92a4cdc76e4947a8b80151c9 /src | |
parent | 85bc8e68e2abcebace4729468738271c1f44fe40 (diff) | |
download | caja-d14fef384a435471860130f7337d5dea5bb824a0.tar.bz2 caja-d14fef384a435471860130f7337d5dea5bb824a0.tar.xz |
Gtk3 places-sidebar: fixes accidental device eject
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-places-sidebar.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |