messageTray: Fix summary position in RTL locales

https://bugzilla.gnome.org/show_bug.cgi?id=684214
This commit is contained in:
Florian Müllner 2012-09-16 00:46:28 +02:00
parent ea4855e908
commit e6ba7c6e40

View File

@ -1410,10 +1410,12 @@ const MessageTray = new Lang.Class({
actor.grab_key_focus(); actor.grab_key_focus();
})); }));
global.focus_manager.add_group(this.actor); 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', this._summary = new St.BoxLayout({ name: 'summary-mode',
reactive: true, reactive: true,
track_hover: true, track_hover: true,
x_align: Clutter.ActorAlign.END, x_align: rtl ? Clutter.ActorAlign.START
: Clutter.ActorAlign.END,
x_expand: true, x_expand: true,
y_align: Clutter.ActorAlign.CENTER, y_align: Clutter.ActorAlign.CENTER,
y_expand: true }); y_expand: true });