[anjuta] libanjuta: fix AnjutaTabber for RTL locales
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: fix AnjutaTabber for RTL locales
- Date: Sun, 20 Mar 2011 00:25:50 +0000 (UTC)
commit 05a0ccb1393cc1e91043bdc34ffbf2b86ec06808
Author: Abderrahim Kitouni <akitouni src gnome org>
Date: Sat Mar 19 18:37:50 2011 +0100
libanjuta: fix AnjutaTabber for RTL locales
libanjuta/anjuta-tabber.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libanjuta/anjuta-tabber.c b/libanjuta/anjuta-tabber.c
index 790f97b..bf1a191 100644
--- a/libanjuta/anjuta-tabber.c
+++ b/libanjuta/anjuta-tabber.c
@@ -348,14 +348,15 @@ anjuta_tabber_size_allocate(GtkWidget* widget, GtkAllocation* allocation)
child_alloc.width = child_equal;
}
child_alloc.height = child_req.height - tabber->priv->tab_vborder;
- child_alloc.x = x + padding + begin_tab;
switch (gtk_widget_get_direction (widget))
{
case GTK_TEXT_DIR_RTL:
- x = child_alloc.x - child_alloc.width - 2 * padding - end_tab;
+ child_alloc.x = x - padding - begin_tab - child_alloc.width;
+ x = child_alloc.x - 2 * padding - end_tab;
break;
case GTK_TEXT_DIR_LTR:
default:
+ child_alloc.x = x + padding + begin_tab;
x = child_alloc.x + child_alloc.width + 2 * padding + end_tab;
}
child_alloc.y = allocation->y +
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]