alternative-status-menu: unpack the result of CanHibernate

The DBus call yields a GVariant, which we need to unpack to
obtain the JS value to compare.

https://bugzilla.gnome.org/show_bug.cgi?id=702300
This commit is contained in:
Giovanni Campagna
2013-07-04 16:46:25 +02:00
parent a2f14c57c5
commit 6fbc63e9e6

View File

@@ -47,7 +47,7 @@ function loginManager_canHibernate(asyncCallback) {
let result, error;
try {
result = proxy.call_finish(asyncResult);
result = proxy.call_finish(asyncResult).deep_unpack();
} catch(e) {
error = e;
}