diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-27 15:08:04 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-27 15:14:42 +0000 |
commit | 6dacd571ae133e9f8ada918e6222b79c932e0788 (patch) | |
tree | 29105635689603f977701edde27b193d934f044d /src/ft-channel.c | |
parent | 0a7fd199e0ce6b1e67fc18cdae023c9ce9b608b4 (diff) |
Avoid manually setting WockyNode.ns where sensible.
There's still one case in the Jingle code which seems justifiable.
Diffstat (limited to 'src/ft-channel.c')
-rw-r--r-- | src/ft-channel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ft-channel.c b/src/ft-channel.c index a0cc25d38..69451ec80 100644 --- a/src/ft-channel.c +++ b/src/ft-channel.c @@ -1223,8 +1223,7 @@ offer_bytestream (GabbleFileTransferChannel *self, const gchar *jid, size_str = g_strdup_printf ("%" G_GUINT64_FORMAT, self->priv->size); - file_node = wocky_node_add_child_with_content (si_node, "file", NULL); - file_node->ns = g_quark_from_string (NS_FILE_TRANSFER); + file_node = wocky_node_add_child_ns (si_node, "file", NS_FILE_TRANSFER); wocky_node_set_attributes (file_node, "name", self->priv->filename, "size", size_str, @@ -1649,8 +1648,7 @@ augment_si_reply (WockyNode *si, GabbleFileTransferChannel *self = GABBLE_FILE_TRANSFER_CHANNEL (user_data); WockyNode *file; - file = wocky_node_add_child_with_content (si, "file", NULL); - file->ns = g_quark_from_string (NS_FILE_TRANSFER); + file = wocky_node_add_child_ns (si, "file", NS_FILE_TRANSFER); if (self->priv->initial_offset != 0) { |