[gnome-shell] telepathyClient: Add another GAsyncReadyCallback



commit 6f515f23277b6d84c773e98382d35fde95b12272
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jun 28 12:06:54 2011 -0400

    telepathyClient: Add another 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 |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index 14e1d4e..644f893 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -149,7 +149,9 @@ Client.prototype = {
                            if (this._tpClient.is_handling_channel(channel)) {
                                // The chat box has been destroyed so it can't
                                // handle the channel any more.
-                               channel.close_async(null);
+                               channel.close_async(function(src, result) {
+                                   channel.close_finish(result);
+                               });
                            }
 
                            delete this._sources[channel.get_object_path()];



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]