[gnome-mahjongg] Fix direction of Play button in RTL layouts



commit 4850af6ba4d5a5f663be1f97cca6758a5fab274d
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Thu Feb 20 19:09:09 2014 -0600

    Fix direction of Play button in RTL layouts

 src/gnome-mahjongg.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index e22bc5a..c3fac97 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -562,7 +562,9 @@ public class Mahjongg : Gtk.Application
         var pause_image = (Gtk.Image) pause_button.image;
         if (game_view.game.paused)
         {
-            pause_image.icon_name = "media-playback-start-symbolic";
+            bool rtl = Gtk.Widget.get_default_direction () == Gtk.TextDirection.RTL;
+            pause_image.icon_name = rtl ? "media-playback-start-rtl-symbolic" :
+                                          "media-playback-start-symbolic";
             pause_button.set_tooltip_text (_("Unpause the game"));
         }
         else


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