system: Fix orientation lock never appearing

Typos meant that the orientation service was never detected as running
and that the orientation lock menu item didn't appear.

https://bugzilla.gnome.org/show_bug.cgi?id=733498
This commit is contained in:
Bastien Nocera 2014-07-21 14:34:21 +02:00
parent f1b1dbcb00
commit 9c6180afa2

View File

@ -151,11 +151,11 @@ const Indicator = new Lang.Class({
Gio.DBus.session.watch_name('org.gnome.SettingsDaemon.Orientation', Gio.DBus.session.watch_name('org.gnome.SettingsDaemon.Orientation',
Gio.BusNameWatcherFlags.NONE, Gio.BusNameWatcherFlags.NONE,
Lang.bind(this, function() { Lang.bind(this, function() {
this._orentationExists = true; this._orientationExists = true;
this._updateOrientationLock(); this._updateOrientationLock();
}), }),
Lang.bind(this, function() { Lang.bind(this, function() {
this._orentationExists = false; this._orientationExists = false;
this._updateOrientationLock(); this._updateOrientationLock();
})); }));
this._updateOrientationLock(); this._updateOrientationLock();