[gnome-clocks] Fix the incorrect order of timer's time labels using RTL locale
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Fix the incorrect order of timer's time labels using RTL locale
- Date: Fri, 19 Aug 2016 21:12:37 +0000 (UTC)
commit 3e26bfbf0a94ee5ac618be87ce037f473336d8e1
Author: Tuomas Räsänen <tuomasjjrasanen tjjr fi>
Date: Fri Jun 3 12:16:56 2016 +0300
Fix the incorrect order of timer's time labels using RTL locale
Previously, with RTL locale and when the timer was running, time
labels were displayed in incorrect order, [ss]:[mm]:[hh]. Spinbuttons
had already been forced to LTR order, but labels were not.
This commit fixes the issue by forcing the order of time labels to LTR
also when the timer is running.
Closes #743821
Signed-off-by: Tuomas Räsänen <tuomasjjrasanen tjjr fi>
src/timer.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/timer.vala b/src/timer.vala
index adc557f..783e452 100644
--- a/src/timer.vala
+++ b/src/timer.vala
@@ -88,6 +88,8 @@ public class Face : Gtk.Stack, Clocks.Clock {
[GtkChild]
private Gtk.Grid grid_spinbuttons;
[GtkChild]
+ private Gtk.Grid grid_labels;
+ [GtkChild]
private Gtk.SpinButton h_spinbutton;
[GtkChild]
private Gtk.SpinButton m_spinbutton;
@@ -127,6 +129,7 @@ public class Face : Gtk.Stack, Clocks.Clock {
// Force LTR since we do not want to reverse [hh] : [mm] : [ss]
grid_spinbuttons.set_direction (Gtk.TextDirection.LTR);
+ grid_labels.set_direction (Gtk.TextDirection.LTR);
reset ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]