summaryrefslogtreecommitdiff
path: root/src/salut-ft-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-11-21 15:57:37 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-03-16 16:00:08 +0000
commit4968bb1ca5bda27d0b3c74959ff349bdc153319e (patch)
treebc821b3d564a4fafd36af2e9f897886351f6ab52 /src/salut-ft-manager.c
parent33b89cdaf4f69ce237afd5d500e52e9b4989eea3 (diff)
pass all the properties to salut_file_transfer_channel_new
Diffstat (limited to 'src/salut-ft-manager.c')
-rw-r--r--src/salut-ft-manager.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/salut-ft-manager.c b/src/salut-ft-manager.c
index 4d539208..19d21627 100644
--- a/src/salut-ft-manager.c
+++ b/src/salut-ft-manager.c
@@ -426,19 +426,9 @@ salut_ft_manager_handle_request (TpChannelManager *manager,
path = generate_object_path (self, handle);
chan = salut_file_transfer_channel_new (priv->connection, contact, path,
- handle, priv->xmpp_connection_manager, base_connection->self_handle,
- TP_FILE_TRANSFER_STATE_PENDING);
-
- g_object_set (chan,
- "content-type", content_type,
- "filename", filename,
- "size", size,
- "content-hash-type", content_hash_type,
- "content-hash", content_hash,
- "description", description,
- "date", date,
- "initial-offset", initial_offset,
- NULL);
+ handle, priv->xmpp_connection_manager, base_connection->self_handle,
+ TP_FILE_TRANSFER_STATE_PENDING, content_type, filename, size,
+ content_hash_type, content_hash, description, date, initial_offset);
g_free (path);
g_object_unref (contact);