messageTray: Fix RTL handling in notifications

Commit 234b90ac86 replaced a member variable with a "local"
one, except that it wasn't that local after all ...
This commit is contained in:
Florian Müllner 2014-08-06 16:03:15 +02:00
parent eb69f3aa76
commit efb9f167bd

View File

@ -922,7 +922,7 @@ const Notification = new Lang.Class({
let [titleMinH, titleNatH] = this._titleLabel.get_preferred_height(availWidth); let [titleMinH, titleNatH] = this._titleLabel.get_preferred_height(availWidth);
let [bannerMinW, bannerNatW] = this._bannerLabel.get_preferred_width(availWidth); let [bannerMinW, bannerNatW] = this._bannerLabel.get_preferred_width(availWidth);
let rtl = (this._titleDirection == Clutter.TextDirection.RTL); let rtl = (this._table.text_direction == Clutter.TextDirection.RTL);
let x = rtl ? availWidth : 0; let x = rtl ? availWidth : 0;
if (this._secondaryIcon) { if (this._secondaryIcon) {