[polari] connections: Add callback to set_enabled_async()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] connections: Add callback to set_enabled_async()
- Date: Thu, 8 Aug 2013 13:06:21 +0000 (UTC)
commit b4c785ba6ec86ca33d039baf246a24b7f84fa82a
Author: Florian Müllner <florian muellner gmail com>
Date: Sun Jul 21 17:55:27 2013 +0200
connections: Add callback to set_enabled_async()
I've seen some odd behavior there twice now, maybe that'll help for
some errors to show up in the logs.
src/connections.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 722c5fa..9c8ff60 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -95,7 +95,10 @@ const ConnectionsDialog = new Lang.Class({
sw.connect('notify::active',
function() {
- account.set_enabled_async(sw.active, null);
+ account.set_enabled_async(sw.active, Lang.bind(this,
+ function(a, res) {
+ a.set_enabled_finish(res);
+ }));
});
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]