From 43d1413338d9a51b69088f05cff32ff7ccaa3c66 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 29 Mar 2010 11:22:23 -0400 Subject: Bug 614049 - Attachment bar causes drawing issues in RTL locales --- widgets/misc/e-attachment-paned.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c index 519d4070c8..8b4c2bfb96 100644 --- a/widgets/misc/e-attachment-paned.c +++ b/widgets/misc/e-attachment-paned.c @@ -619,10 +619,15 @@ attachment_paned_init (EAttachmentPaned *paned) /* Request the width to be as large as possible, and let the * GtkExpander allocate what space there is. This effectively - * packs the widget to expand. */ + * packs the widget to expand. + * + * XXX This hack causes nasty side-effects in RTL locales, + * so check the reading direction before applying it. + * See GNOME bug #614049 for details + screenshot. */ widget = gtk_hbox_new (FALSE, 6); gtk_size_group_add_widget (size_group, widget); - gtk_widget_set_size_request (widget, G_MAXINT, -1); + if (gtk_widget_get_direction (widget) != GTK_TEXT_DIR_RTL) + gtk_widget_set_size_request (widget, G_MAXINT, -1); gtk_expander_set_label_widget (GTK_EXPANDER (container), widget); gtk_widget_show (widget); -- cgit v1.2.3