[gnome-shell] telepathyClient: Don't ignore GAsyncReadyCallback
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: Don't ignore GAsyncReadyCallback
- Date: Thu, 23 Jun 2011 23:27:55 +0000 (UTC)
commit 5c6e5ef6d003e44d670cec7235c3b7522726c526
Author: Colin Walters <walters verbum org>
Date: Thu Jun 23 19:22:43 2011 -0400
telepathyClient: Don't ignore GAsyncReadyCallback
This is better for memory management, and we'll see any errors this
way, which we may eventually want to do something with.
We need to make this change because gjs recently started checking
(allow-none) on callbacks.
js/ui/telepathyClient.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index c4090b6..5fb7fb0 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -382,7 +382,7 @@ Source.prototype = {
}
let msg = Tp.ClientMessage.new_text(type, text);
- this._channel.send_message_async(msg, 0, null);
+ this._channel.send_message_async(msg, 0, Lang.bind(this, function (src, result) { this._channel.send_message_finish(src, result); }));
},
_presenceChanged: function (contact, presence, status, message) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]