diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-09-05 11:15:00 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-09-05 15:47:28 +0200 |
commit | 8a628bd8efeee4fe359a72cf56bdde6350c024dc (patch) | |
tree | 4a66070178e83a8a055a146a16e610247a14674d /examples | |
parent | cde6fbb93f2c1392e51f67f5d4d15b22ff48e307 (diff) | |
download | telepathy-glib-8a628bd8efeee4fe359a72cf56bdde6350c024dc.tar.gz |
TpTextChannel: Deprecate _get_ functions returning a GList and replace them by _dup_
New transfer and naming policy has been discussed in
https://bugs.freedesktop.org/show_bug.cgi?id=39189 and is
documented there: http://telepathy.freedesktop.org/wiki/Style/TelepathyGLib
Diffstat (limited to 'examples')
-rw-r--r-- | examples/client/text-handler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/client/text-handler.c b/examples/client/text-handler.c index d2c0aa232..c9cf2d731 100644 --- a/examples/client/text-handler.c +++ b/examples/client/text-handler.c @@ -66,7 +66,7 @@ display_pending_messages (TpTextChannel *channel) { GList *messages, *l; - messages = tp_text_channel_get_pending_messages (channel); + messages = tp_text_channel_dup_pending_messages (channel); for (l = messages; l != NULL; l = g_list_next (l)) { @@ -77,7 +77,7 @@ display_pending_messages (TpTextChannel *channel) tp_text_channel_ack_messages_async (channel, messages, NULL, NULL); - g_list_free (messages); + g_list_free_full (messages, g_object_unref); } static void |