[gnome-control-center] datetime: Fix time editing widgets order for RTL
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Fix time editing widgets order for RTL
- Date: Mon, 21 Mar 2011 21:06:53 +0000 (UTC)
commit 647f2a836d7c21ed2abc8dbc660c2161f671981c
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 21 21:05:06 2011 +0000
datetime: Fix time editing widgets order for RTL
https://bugzilla.gnome.org/show_bug.cgi?id=645425
panels/datetime/cc-datetime-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/datetime/cc-datetime-panel.c b/panels/datetime/cc-datetime-panel.c
index 5b8e87e..dc25048 100644
--- a/panels/datetime/cc-datetime-panel.c
+++ b/panels/datetime/cc-datetime-panel.c
@@ -853,6 +853,10 @@ cc_date_time_panel_init (CcDateTimePanel *self)
endianess = date_endian_get_default (FALSE);
reorder_date_widget (endianess, priv);
+ /* Force the direction for the time, so that the time
+ * is presented correctly for RTL languages */
+ gtk_widget_set_direction (W("table2"), GTK_TEXT_DIR_LTR);
+
gtk_combo_box_set_active (GTK_COMBO_BOX (W ("month-combobox")),
g_date_time_get_month (priv->date) - 1);
g_signal_connect (G_OBJECT (W("month-combobox")), "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]