[gnome-chess] Fix the play button's icon in RTL



commit 43b0e1af335cfa0b34b6972f15c33ebefe7163f1
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Thu Feb 20 13:39:06 2014 +0200

    Fix the play button's icon in RTL
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724792

 src/gnome-chess.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index b852f35..b4d16d8 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1095,7 +1095,10 @@ public class Application : Gtk.Application
 
         if (game != null && game.is_paused)
         {
-            pause_resume_button.image = new Gtk.Image.from_icon_name ("media-playback-start-symbolic",
+            bool rtl = Gtk.Widget.get_default_direction () == Gtk.TextDirection.RTL;
+
+            pause_resume_button.image = new Gtk.Image.from_icon_name (rtl ? 
"media-playback-start-rtl-symbolic" :
+                                                                            "media-playback-start-symbolic",
                                                                       Gtk.IconSize.BUTTON);
             pause_resume_button.tooltip_text = _("Unpause the game");
         }


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