summaryrefslogtreecommitdiff
path: root/salut
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-11-09 17:22:52 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-11-09 17:22:52 +0000
commit0806e632fb8d0ebd53215148e9076c2036c86127 (patch)
tree067389a32be52228058d70ebc33c0e1da1b860d7 /salut
parent20adc3cf5ba2ec40f905208ec5042153f197c1bd (diff)
ft-channel: use a more appropriate GQueue than a GList
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'salut')
-rw-r--r--salut/src/file-transfer-channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/salut/src/file-transfer-channel.c b/salut/src/file-transfer-channel.c
index 5db097d2e..0e3f75221 100644
--- a/salut/src/file-transfer-channel.c
+++ b/salut/src/file-transfer-channel.c
@@ -1138,7 +1138,7 @@ add_metadata_forms (SalutFileTransferChannel *self,
GibberFileTransfer *ft)
{
GError *error = NULL;
- GList *list = NULL;
+ GQueue queue = G_QUEUE_INIT;
if (!tp_str_empty (self->priv->service_name))
{
@@ -1172,7 +1172,7 @@ add_metadata_forms (SalutFileTransferChannel *self,
}
else
{
- list = g_list_append (list, form);
+ g_queue_push_tail (&queue, form);
}
g_object_unref (tmp);
@@ -1220,13 +1220,13 @@ add_metadata_forms (SalutFileTransferChannel *self,
}
else
{
- list = g_list_append (list, form);
+ g_queue_push_tail (&queue, form);
}
g_object_unref (tmp);
}
- return list;
+ return queue.head;
}
static void