empathy r1744 - trunk/libempathy



Author: xclaesse
Date: Fri Nov 21 16:14:12 2008
New Revision: 1744
URL: http://svn.gnome.org/viewvc/empathy?rev=1744&view=rev

Log:
Correctly set the EmpathyContact in an EmpathyTpFile. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy/empathy-tp-file.c

Modified: trunk/libempathy/empathy-tp-file.c
==============================================================================
--- trunk/libempathy/empathy-tp-file.c	(original)
+++ trunk/libempathy/empathy-tp-file.c	Fri Nov 21 16:14:12 2008
@@ -302,6 +302,7 @@
   EmpathyTpFilePriv *priv;
   GError            *error = NULL;
   GHashTable        *properties;
+  TpHandle           handle;
 
   tp_file = G_OBJECT_CLASS (empathy_tp_file_parent_class)->constructor (type, n_props, props);
 
@@ -325,6 +326,12 @@
                                                                   tp_file,
                                                                   NULL, NULL, NULL);
 
+
+  handle = tp_channel_get_handle (priv->channel, NULL);
+  priv->contact = empathy_contact_factory_get_from_handle (priv->factory,
+                                                           priv->account,
+                                                           (guint) handle);
+
   if (!tp_cli_dbus_properties_run_get_all (priv->channel,
       -1, EMP_IFACE_CHANNEL_TYPE_FILE, &properties, &error, NULL))
     {



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