datetime: Fix time editing widgets order for RTL

https://bugzilla.gnome.org/show_bug.cgi?id=645425
This commit is contained in:
Bastien Nocera 2011-03-21 21:05:06 +00:00
parent a5627cd63a
commit 647f2a836d

View file

@ -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",