[gnome-clocks/bilelmoussaoui/timer-ltr: 2/4] timer: force LTR for the countdown label




commit 99fca6833cb95127a8a6e5dd420fe50e02ddfbe6
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Tue Sep 29 20:27:58 2020 +0000

    timer: force LTR for the countdown label
    
    Fixes #140

 src/timer-row.vala | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/timer-row.vala b/src/timer-row.vala
index 76e6ad5..eab462d 100644
--- a/src/timer-row.vala
+++ b/src/timer-row.vala
@@ -67,6 +67,9 @@ public class Row : Gtk.ListBoxRow {
 
     public Row (Item item) {
         Object (item: item);
+        
+        // Force LTR since we do not want to reverse [hh] : [mm] : [ss]
+        countdown_label.set_direction (Gtk.TextDirection.LTR);
 
         item.countdown_updated.connect (this.update_countdown);
         item.ring.connect (() => this.ring ());


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