diff options
author | Yosef Or Boczko <yoseforb@gmail.com> | 2013-07-01 17:18:10 +0300 |
---|---|---|
committer | Yosef Or Boczko <yoseforb@gmail.com> | 2013-07-01 17:18:10 +0300 |
commit | b75bcc3d9d012182e33703c179051cba140147dc (patch) | |
tree | 88c72f0e9dafd6a2bde7d96fd6bb529e30faa326 /src/totem-playlist.c | |
parent | 0efca5c3f9ac84a8223c267f4f49e6aa68928ee6 (diff) | |
download | totem-b75bcc3d9d012182e33703c179051cba140147dc.tar.gz |
main: Set button arrow icons according to locale's text direction
go-previous-symbolic in LTR,
go-previous-rtl-symbolic in RTL.
media-playback-start-symbolic in LTR,
media-playback-start-rtl-symbolic in RTL.
media-seek-forward-symbolic in LTR,
media-seek-forward-rtl-symbolic in RTL.
media-seek-backward-symbolic in LTR,
media-seek-backward-rtl-symbolic in RTL.
media-skip-forward-symbolic in LTR,
media-skip-forward-rtl-symbolic in RTL.
media-skip-backward-symbolic in LTR,
media-skip-backward-rtl-symbolic in RTL.
https://bugzilla.gnome.org/show_bug.cgi?id=702631
Diffstat (limited to 'src/totem-playlist.c')
-rw-r--r-- | src/totem-playlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/totem-playlist.c b/src/totem-playlist.c index d2e661037..e73169f41 100644 --- a/src/totem-playlist.c +++ b/src/totem-playlist.c @@ -1272,12 +1272,15 @@ set_playing_icon (GtkTreeViewColumn *column, GtkCellRenderer *renderer, { TotemPlaylistStatus playing; const char *icon_name; + gboolean rtl; + + rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL; gtk_tree_model_get (model, iter, PLAYING_COL, &playing, -1); switch (playing) { case TOTEM_PLAYLIST_STATUS_PLAYING: - icon_name = "media-playback-start-symbolic"; + icon_name = rtl ? "media-playback-start-rtl-symbolic" : "media-playback-start-symbolic"; break; case TOTEM_PLAYLIST_STATUS_PAUSED: icon_name = "media-playback-pause-symbolic"; |