[gnome-clocks] Fix time representation in RTL languages in dialog new alarm



commit ace8875e686491b34a42f05b182d05a7ef604676
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Mon Aug 12 23:47:06 2013 +0300

    Fix time representation in RTL languages in dialog new alarm
    
    Set the direction of the grid to LTR in RTL language.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705871
    
    Signed-off-by: Yosef Or Boczko <yoseforb gmail com>

 src/alarm.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/alarm.vala b/src/alarm.vala
index 21f12e7..2362517 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -256,6 +256,8 @@ private class Item : Object, ContentItem {
 private class SetupDialog : Gtk.Dialog {
     private Utils.WallClock.Format format;
     [GtkChild]
+    private Gtk.Grid time_grid;
+    [GtkChild]
     private Gtk.SpinButton h_spinbutton;
     [GtkChild]
     private Gtk.SpinButton m_spinbutton;
@@ -275,6 +277,9 @@ private class SetupDialog : Gtk.Dialog {
     public SetupDialog (Gtk.Window parent, Item? alarm) {
         Object (transient_for: parent, title: alarm != null ? _("Edit Alarm") : _("New Alarm"));
 
+        // Force LTR since we do not want to reverse [hh] : [mm]
+        time_grid.set_direction (Gtk.TextDirection.LTR);
+
         format  = Utils.WallClock.get_default ().format;
         am_pm_button = new AmPmToggleButton ();
 


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