diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:14:12 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:14:12 +0800 |
commit | f5685dc3ddec8832833db61200e54229b4f2bda1 (patch) | |
tree | 20020fd90fa70b171a99af991b534b7e1d6ce022 | |
parent | 42d339e0c937637a26904dc080e6f90c1522e181 (diff) | |
download | gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar.gz gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar.bz2 gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar.lz gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar.xz gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.tar.zst gsoc2013-empathy-f5685dc3ddec8832833db61200e54229b4f2bda1.zip |
Correctly set the EmpathyContact in an EmpathyTpFile. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1744 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r-- | libempathy/empathy-tp-file.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-file.c b/libempathy/empathy-tp-file.c index 26b33ae87..ca7412bc2 100644 --- a/libempathy/empathy-tp-file.c +++ b/libempathy/empathy-tp-file.c @@ -302,6 +302,7 @@ tp_file_constructor (GType type, 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_constructor (GType type, 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)) { |