[gnome-shell-extensions/wip/3-8-backports: 2/7] 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/wip/3-8-backports: 2/7] alternative-status-menu: unpack the result of CanHibernate
- Date: Tue, 10 Sep 2013 15:00:31 +0000 (UTC)
commit dd28a76c81b8d16fb94ad513da5f18fa96713e59
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]