[gnome-shell] messageTray: Fix summary position in RTL locales
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Fix summary position in RTL locales
- Date: Wed, 19 Sep 2012 01:45:43 +0000 (UTC)
commit e6ba7c6e4054f77570ab62e9e10745df50a43731
Author: Florian MÃllner <fmuellner gnome org>
Date: Sun Sep 16 00:46:28 2012 +0200
messageTray: Fix summary position in RTL locales
https://bugzilla.gnome.org/show_bug.cgi?id=684214
js/ui/messageTray.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 30cb6a7..5f6e17f 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 });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]