[gnome-shell-extensions] alternative-status-menu: unpack the result of CanHibernate
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternative-status-menu: unpack the result of CanHibernate
- Date: Thu, 4 Jul 2013 14:51:48 +0000 (UTC)
commit 6fbc63e9e6f19aa992ba01cbd905bf486a888bba
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Jul 4 16:46:25 2013 +0200
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
extensions/alternative-status-menu/extension.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extensions/alternative-status-menu/extension.js b/extensions/alternative-status-menu/extension.js
index 44c4f75..4285edd 100644
--- a/extensions/alternative-status-menu/extension.js
+++ b/extensions/alternative-status-menu/extension.js
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]