aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-calendar.c
diff options
context:
space:
mode:
authorBehnam Esfahbod <behnam@zwnj.org>2006-08-23 17:23:38 +0800
committerAndre Klapper <aklapper@src.gnome.org>2006-08-23 17:23:38 +0800
commit0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9 (patch)
treeff4dda432aeaaf60a9efdd37c907667383a66e62 /widgets/misc/e-calendar.c
parent6c0397b958bb747b8381a116f082671b0f4d9d02 (diff)
downloadgsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar.gz
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar.bz2
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar.lz
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar.xz
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.tar.zst
gsoc2013-evolution-0e0dc0b15d17fe2d0c210a3829dc2eccffc4a5c9.zip
flip month view in RTL locale - fixes bug 342443. committed by Andre
2006-08-23 Behnam Esfahbod <behnam@zwnj.org> * e-calendar.c: * e-calendar-item.c: flip month view in RTL locale - fixes bug 342443. committed by Andre Klapper svn path=/trunk/; revision=32641
Diffstat (limited to 'widgets/misc/e-calendar.c')
-rw-r--r--widgets/misc/e-calendar.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c
index fc1c21c74d..035dac8a36 100644
--- a/widgets/misc/e-calendar.c
+++ b/widgets/misc/e-calendar.c
@@ -355,8 +355,10 @@ e_calendar_size_allocate (GtkWidget *widget,
- E_CALENDAR_ARROW_BUTTON_Y_PAD * 2;
gnome_canvas_item_set (cal->prev_item,
- "x", xthickness * 2
- + E_CALENDAR_ARROW_BUTTON_X_PAD,
+ "x", (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
+ ? new_x2 + 1 - xthickness * 2 - E_CALENDAR_ARROW_BUTTON_X_PAD
+ - arrow_button_size
+ : xthickness * 2 + E_CALENDAR_ARROW_BUTTON_X_PAD,
"y", ythickness * 2
+ E_CALENDAR_ARROW_BUTTON_Y_PAD,
"width", arrow_button_size,
@@ -364,9 +366,10 @@ e_calendar_size_allocate (GtkWidget *widget,
NULL);
gnome_canvas_item_set (cal->next_item,
- "x", new_x2 + 1 - xthickness * 2
- - E_CALENDAR_ARROW_BUTTON_X_PAD
- - arrow_button_size,
+ "x", (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
+ ? xthickness * 2 + E_CALENDAR_ARROW_BUTTON_X_PAD
+ : new_x2 + 1 - xthickness * 2 - E_CALENDAR_ARROW_BUTTON_X_PAD
+ - arrow_button_size,
"y", ythickness * 2
+ E_CALENDAR_ARROW_BUTTON_Y_PAD,
"width", arrow_button_size,