From c0754b634530142ce633207d42866175c506fade Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Thu, 22 Apr 2004 13:53:28 +0000 Subject: take into account the position of the sidebar which isnt on the very left 2004-04-22 Trent Lloyd * 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 --- shell/ChangeLog | 6 ++++++ shell/e-sidebar.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 09b2d85a49..5c743f210a 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2004-04-22 Trent Lloyd + + * 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. + 2004-04-21 Not Zed * e-user-creatable-items-handler.c (execute_verb): if we're 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) { -- cgit v1.2.3