From 7611cc90a1147911f61e88827057232308fd2b86 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 21 Nov 2008 16:15:43 +0000 Subject: Set the ContentType property properly on a new file channel. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1767 --- libempathy/empathy-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libempathy/empathy-utils.c') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index 3123a9156..c4f0d716e 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -32,6 +32,7 @@ #include +#include #include #include #include @@ -843,7 +844,7 @@ empathy_send_file_from_stream (EmpathyContact *contact, &value, NULL, NULL); g_value_reset (&value); - g_value_set_string (&value, "application/octet-stream"); + g_value_set_string (&value, gnome_vfs_get_mime_type_for_name (filename)); tp_cli_dbus_properties_run_set (TP_PROXY (channel), -1, EMP_IFACE_CHANNEL_TYPE_FILE, "ContentType", &value, NULL, NULL); -- cgit v1.2.3