aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-sidebar.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2004-04-22 21:53:28 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-04-22 21:53:28 +0800
commitc0754b634530142ce633207d42866175c506fade (patch)
tree1dd6d8a6cbfd178af7969e3b6d27322da31edab9 /shell/e-sidebar.c
parent1e993e1218dbe2649875614db36c5ec62bea8949 (diff)
downloadgsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar.gz
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar.bz2
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar.lz
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar.xz
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.tar.zst
gsoc2013-evolution-c0754b634530142ce633207d42866175c506fade.zip
take into account the position of the sidebar which isnt on the very left
2004-04-22 Trent Lloyd <lathiat@bur.st> * e-sidebar.c (do_layout_text_buttons): take into account the position of the sidebar which isnt on the very left in right to left languages, otherwise the buttons are drawn in the wrong place. svn path=/trunk/; revision=25582
Diffstat (limited to 'shell/e-sidebar.c')
-rw-r--r--shell/e-sidebar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/e-sidebar.c b/shell/e-sidebar.c
index ef891eeb2a..d4362066c6 100644
--- a/shell/e-sidebar.c
+++ b/shell/e-sidebar.c
@@ -213,7 +213,7 @@ do_layout_text_buttons (ESidebar *sidebar)
int len, extra_width;
y -= max_btn_height;
- x = H_PADDING;
+ x = H_PADDING + allocation->x;
len = g_slist_length (rows[i]);
extra_width = (allocation->width - (len * max_btn_width ) - (len * H_PADDING)) / len;
for (p = rows [i]; p != NULL; p = p->next) {