[totem] backend: Fix direction of swipe with RTL languages



commit e369bf7276d16bbf40fe20f1610a5041fbd05750
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 14 11:56:20 2014 +0100

    backend: Fix direction of swipe with RTL languages

 src/backend/bacon-video-widget.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index faeed88..2805a73 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -881,9 +881,11 @@ bacon_video_widget_swipe (ClutterTapAction      *action,
     }
 
     if (direction & CLUTTER_SWIPE_DIRECTION_LEFT)
-      g_signal_emit (G_OBJECT (bvw), bvw_signals[SIGNAL_SEEK_REQUESTED], 0, FALSE);
+      g_signal_emit (G_OBJECT (bvw), bvw_signals[SIGNAL_SEEK_REQUESTED], 0,
+                    gtk_widget_get_direction (GTK_WIDGET (bvw)) == GTK_TEXT_DIR_RTL);
     if (direction & CLUTTER_SWIPE_DIRECTION_RIGHT)
-      g_signal_emit (G_OBJECT (bvw), bvw_signals[SIGNAL_SEEK_REQUESTED], 0, TRUE);
+      g_signal_emit (G_OBJECT (bvw), bvw_signals[SIGNAL_SEEK_REQUESTED], 0,
+                    gtk_widget_get_direction (GTK_WIDGET (bvw)) == GTK_TEXT_DIR_LTR);
 
     return CLUTTER_EVENT_STOP;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]