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



commit f6a1393d4019d7e158669b8dcc43f7207293a54b
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Mon Jul 29 20:18:21 2013 +0300

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

 src/js/viewers/audio.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/js/viewers/audio.js b/src/js/viewers/audio.js
index a6ccca4..3cd516c 100644
--- a/src/js/viewers/audio.js
+++ b/src/js/viewers/audio.js
@@ -236,7 +236,10 @@ AudioRenderer.prototype = {
             this._toolbarPlay.set_icon_name('media-playback-pause-symbolic');
             break;
         default:
-            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);
         }
     },
 


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