[sushi] gst: set 'media-playback-start' icon according to locale's text direction



commit 7ede949a30f34308a4e08492b79028dd4069ec08
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Mon Jul 29 20:17:38 2013 +0300

    gst: set 'media-playback-start' icon according to locale's text direction
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705017

 src/js/viewers/gst.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/js/viewers/gst.js b/src/js/viewers/gst.js
index 528785a..03d4a7c 100644
--- a/src/js/viewers/gst.js
+++ b/src/js/viewers/gst.js
@@ -129,7 +129,12 @@ GstRenderer.prototype = {
         if (this._video.playing)
             this._toolbarPlay.set_icon_name('media-playback-pause-symbolic');
         else
-            this._toolbarPlay.set_icon_name('media-playback-start-symbolic');
+        {
+            let iconName =
+            (this._toolbarPlay.get_direction() == Gtk.TextDirection.RTL) ?
+                'media-playback-start-rtl-symbolic' : 'media-playback-start-symbolic';
+            this._toolbarPlay.set_icon_name(iconName);
+        }
     },
 
     getSizeForAllocation : function(allocation) {


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