Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/data.c @ 30199:bae447e1fa96
Allow the "alt" property on a Bits of Binary object to be NULL (do not store
it in the alt lookup hashtable). This will allow us to create data objects
for temporary "one time" objects (such as file transfer thumbnails)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 25 Jun 2009 20:56:37 +0000 |
parents | a8537bbcfb79 |
children | 51bc0be83108 |
comparison
equal
deleted
inserted
replaced
30198:afe5c224f3e9 | 30199:bae447e1fa96 |
---|---|
183 void | 183 void |
184 jabber_data_associate_local(JabberData *data, const gchar *alt) | 184 jabber_data_associate_local(JabberData *data, const gchar *alt) |
185 { | 185 { |
186 purple_debug_info("jabber", "associating local smiley\n alt = %s, cid = %s\n", | 186 purple_debug_info("jabber", "associating local smiley\n alt = %s, cid = %s\n", |
187 alt, jabber_data_get_cid(data)); | 187 alt, jabber_data_get_cid(data)); |
188 g_hash_table_insert(local_data_by_alt, g_strdup(alt), data); | 188 if (alt) |
189 g_hash_table_insert(local_data_by_alt, g_strdup(alt), data); | |
189 g_hash_table_insert(local_data_by_cid, g_strdup(jabber_data_get_cid(data)), | 190 g_hash_table_insert(local_data_by_cid, g_strdup(jabber_data_get_cid(data)), |
190 data); | 191 data); |
191 } | 192 } |
192 | 193 |
193 void | 194 void |