[evolution] Bug 614049 - Attachment bar causes drawing issues in RTL locales
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 614049 - Attachment bar causes drawing issues in RTL locales
- Date: Mon, 29 Mar 2010 15:23:18 +0000 (UTC)
commit 2944cd164091be9353cd8fe92274b946c04b2847
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Mar 29 11:22:23 2010 -0400
Bug 614049 - Attachment bar causes drawing issues in RTL locales
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 519d407..8b4c2bf 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]