[notification-daemon] Fix stripe position in RTL locales
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] Fix stripe position in RTL locales
- Date: Fri, 2 Apr 2010 23:35:36 +0000 (UTC)
commit 146941d336afcca34f9d2db6b78ad243c904f550
Author: William Jon McCann <jmccann redhat com>
Date: Fri Apr 2 19:33:01 2010 -0400
Fix stripe position in RTL locales
https://bugzilla.gnome.org/show_bug.cgi?id=608082
src/themes/standard/theme.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index e0feddb..4f626ec 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -154,6 +154,8 @@ draw_stripe (GtkWidget *widget,
style = gtk_widget_get_style (widget);
stripe_x = windata->main_hbox->allocation.x + 1;
+ if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
+ stripe_x = windata->width - STRIPE_WIDTH - stripe_x;
stripe_y = windata->main_hbox->allocation.y + 1;
stripe_height = windata->main_hbox->allocation.height - 2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]