[Xfce4-commits] [xfce/thunar] 01/01: Improve mouse wheel zoom behaviour
noreply at xfce.org
noreply at xfce.org
Wed Apr 1 14:08:48 CEST 2015
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/thunar.
commit e01e135b749243ae13bb7905f619b248750f5f27
Author: Harald Judt <h.judt at gmx.at>
Date: Wed Apr 1 13:44:42 2015 +0200
Improve mouse wheel zoom behaviour
In firefox, evince and most other applications <ctrl>+<mouse_wheel_up>
increases the zoom level (makes content bigger), while <ctrl>+
<mouse_wheel_down> decreases it. In thunar it is the other way round
and this is unintuitive. So go with the standard and invert the current
behaviour.
---
thunar/thunar-standard-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index 6700a94..b0bc091 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -3038,7 +3038,7 @@ thunar_standard_view_scroll_event (GtkWidget *view,
if ((event->state & GDK_CONTROL_MASK) != 0 && (event->direction == GDK_SCROLL_UP || event->direction == GDK_SCROLL_DOWN))
{
thunar_view_set_zoom_level (THUNAR_VIEW (standard_view),
- (event->direction == GDK_SCROLL_DOWN)
+ (event->direction == GDK_SCROLL_UP)
? MIN (standard_view->priv->zoom_level + 1, THUNAR_ZOOM_N_LEVELS - 1)
: MAX (standard_view->priv->zoom_level, 1) - 1);
return TRUE;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list