From e6ba7c6e4054f77570ab62e9e10745df50a43731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 16 Sep 2012 00:46:28 +0200 Subject: [PATCH] messageTray: Fix summary position in RTL locales https://bugzilla.gnome.org/show_bug.cgi?id=684214 --- js/ui/messageTray.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 30cb6a7e6..5f6e17f67 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1410,10 +1410,12 @@ const MessageTray = new Lang.Class({ actor.grab_key_focus(); })); global.focus_manager.add_group(this.actor); + let rtl = this.actor.get_text_direction() == Clutter.TextDirection.RTL; this._summary = new St.BoxLayout({ name: 'summary-mode', reactive: true, track_hover: true, - x_align: Clutter.ActorAlign.END, + x_align: rtl ? Clutter.ActorAlign.START + : Clutter.ActorAlign.END, x_expand: true, y_align: Clutter.ActorAlign.CENTER, y_expand: true });