[Xfce4-commits] <exo:master> Don't invert direction in RTL languages (bug #4285).
Nick Schermer
noreply at xfce.org
Sun Sep 30 16:02:01 CEST 2012
Updating branch refs/heads/master
to 84efa47dcb615c7b8f4050f9db7c3b49167a0e32 (commit)
from c7c5c3e531634d5717190f0dbdda2ec61060c2e9 (commit)
commit 84efa47dcb615c7b8f4050f9db7c3b49167a0e32
Author: Nick Schermer <nick at xfce.org>
Date: Sun Sep 30 16:00:46 2012 +0200
Don't invert direction in RTL languages (bug #4285).
exo/exo-icon-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/exo/exo-icon-view.c b/exo/exo-icon-view.c
index 39bf93c..47b040d 100644
--- a/exo/exo-icon-view.c
+++ b/exo/exo-icon-view.c
@@ -4428,6 +4428,9 @@ exo_icon_view_move_cursor_left_right (ExoIconView *icon_view,
if (!GTK_WIDGET_HAS_FOCUS (icon_view))
return;
+ if (gtk_widget_get_direction (GTK_WIDGET (icon_view)) == GTK_TEXT_DIR_RTL)
+ count *= -1;
+
direction = count < 0 ? GTK_DIR_LEFT : GTK_DIR_RIGHT;
if (!icon_view->priv->cursor_item)
More information about the Xfce4-commits
mailing list