[empathy/gnome-2-28] empathy_call_window_setup_avatars: pass a weak object to empathy_tp_contact_factory_get_from_handle



commit 812029d76b3e7a77c028d2c271696a9f7a691356
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Oct 19 14:42:42 2009 +0100

    empathy_call_window_setup_avatars: pass a weak object to empathy_tp_contact_factory_get_from_handle
    
    Pass the call window as weak object to
    empathy_tp_contact_factory_get_from_handle so the callback won't be
    called if the window is destroyed (#598453).

 src/empathy-call-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 9392634..0644a14 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -943,7 +943,7 @@ empathy_call_window_setup_avatars (EmpathyCallWindow *self,
       factory = empathy_tp_contact_factory_dup_singleton (connection);
       empathy_tp_contact_factory_get_from_handle (factory,
           tp_connection_get_self_handle (connection),
-          empathy_call_window_got_self_contact_cb, self, NULL, NULL);
+          empathy_call_window_got_self_contact_cb, self, NULL, G_OBJECT (self));
 
       g_object_unref (factory);
     }



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