diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-03-29 23:22:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-29 23:23:10 +0800 |
commit | 2944cd164091be9353cd8fe92274b946c04b2847 (patch) | |
tree | 0610d3a66090440ac5b61351d77cf1706df3f099 /widgets | |
parent | 83c22e1531224bfa45e80ba3fc8c81cd874da2d6 (diff) | |
download | gsoc2013-evolution-2944cd164091be9353cd8fe92274b946c04b2847.tar.gz gsoc2013-evolution-2944cd164091be9353cd8fe92274b946c04b2847.tar.zst gsoc2013-evolution-2944cd164091be9353cd8fe92274b946c04b2847.zip |
Bug 614049 - Attachment bar causes drawing issues in RTL locales
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-attachment-paned.c | 9 |
1 files 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); |