aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-03-29 23:22:23 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-30 02:09:16 +0800
commit43d1413338d9a51b69088f05cff32ff7ccaa3c66 (patch)
tree2e02f026eb1dced7c7df4f778d40a5f3c0ec5e15
parentc2f29d3e6b91e448e2e726ef846a8b58806cc722 (diff)
downloadgsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar.gz
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar.bz2
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar.lz
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar.xz
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.tar.zst
gsoc2013-evolution-43d1413338d9a51b69088f05cff32ff7ccaa3c66.zip
Bug 614049 - Attachment bar causes drawing issues in RTL locales
-rw-r--r--widgets/misc/e-attachment-paned.c9
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);