[gnome-calendar] time-selector: fix wrong time order for RTL languages
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] time-selector: fix wrong time order for RTL languages
- Date: Sat, 3 Jan 2015 18:00:48 +0000 (UTC)
commit b635ac71123e11b53539c54ffe464b5cea68fccc
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jan 3 16:00:37 2015 -0200
time-selector: fix wrong time order for RTL languages
Fix bug #741921.
src/gcal-time-selector.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-time-selector.c b/src/gcal-time-selector.c
index ba0e7f7..2d574d9 100644
--- a/src/gcal-time-selector.c
+++ b/src/gcal-time-selector.c
@@ -28,6 +28,7 @@ struct _GcalTimeSelectorPrivate
GtkWidget *hour_spin;
GtkWidget *minute_spin;
GtkWidget *period_combo;
+ GtkWidget *grid;
gboolean format_24h;
};
@@ -177,6 +178,7 @@ gcal_time_selector_class_init (GcalTimeSelectorClass *klass)
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GcalTimeSelector, hour_spin);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GcalTimeSelector, minute_spin);
gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GcalTimeSelector, period_combo);
+ gtk_widget_class_bind_template_child_private (GTK_WIDGET_CLASS (klass), GcalTimeSelector, grid);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), on_output);
gtk_widget_class_bind_template_callback (GTK_WIDGET_CLASS (klass), period_changed);
@@ -192,8 +194,14 @@ gcal_time_selector_init (GcalTimeSelector *self)
static void
gcal_time_selector_constructed (GObject *object)
{
+ GcalTimeSelectorPrivate *priv;
+
+ priv = gcal_time_selector_get_instance_private (GCAL_TIME_SELECTOR (object));
+
/* chaining up */
G_OBJECT_CLASS (gcal_time_selector_parent_class)->constructed (object);
+
+ gtk_widget_set_direction (priv->grid, GTK_TEXT_DIR_LTR);
}
/* Public API */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]