Mercurial > pidgin
comparison libpurple/protocols/jabber/si.c @ 29783:afe5c224f3e9
Add code to generate a thumbnail (only fully works with GDK 2.4+ so far)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 25 Jun 2009 20:46:11 +0000 |
parents | 38c4973b5222 |
children | 7d8b074feda2 |
comparison
equal
deleted
inserted
replaced
29782:3882d419e628 | 29783:afe5c224f3e9 |
---|---|
1258 JabberIq *iq; | 1258 JabberIq *iq; |
1259 xmlnode *si, *file, *feature, *x, *field, *option, *value; | 1259 xmlnode *si, *file, *feature, *x, *field, *option, *value; |
1260 char buf[32]; | 1260 char buf[32]; |
1261 | 1261 |
1262 xfer->filename = g_path_get_basename(xfer->local_filename); | 1262 xfer->filename = g_path_get_basename(xfer->local_filename); |
1263 | 1263 purple_xfer_prepare_thumbnail(xfer); |
1264 | |
1264 iq = jabber_iq_new(jsx->js, JABBER_IQ_SET); | 1265 iq = jabber_iq_new(jsx->js, JABBER_IQ_SET); |
1265 xmlnode_set_attrib(iq->node, "to", xfer->who); | 1266 xmlnode_set_attrib(iq->node, "to", xfer->who); |
1266 si = xmlnode_new_child(iq->node, "si"); | 1267 si = xmlnode_new_child(iq->node, "si"); |
1267 xmlnode_set_namespace(si, "http://jabber.org/protocol/si"); | 1268 xmlnode_set_namespace(si, "http://jabber.org/protocol/si"); |
1268 jsx->stream_id = jabber_get_next_id(jsx->js); | 1269 jsx->stream_id = jabber_get_next_id(jsx->js); |