| 6257 } |
6257 } |
| 6258 |
6258 |
| 6259 loader = gdk_pixbuf_loader_new(); |
6259 loader = gdk_pixbuf_loader_new(); |
| 6260 gdk_pixbuf_loader_write(loader, data, len, NULL); |
6260 gdk_pixbuf_loader_write(loader, data, len, NULL); |
| 6261 gdk_pixbuf_loader_close(loader, &err); |
6261 gdk_pixbuf_loader_close(loader, &err); |
| |
6262 |
| |
6263 purple_imgstore_unref(custom_img); |
| |
6264 |
| 6262 anim = gdk_pixbuf_loader_get_animation(loader); |
6265 anim = gdk_pixbuf_loader_get_animation(loader); |
| 6263 if (anim) |
6266 if (anim) |
| 6264 g_object_ref(G_OBJECT(anim)); |
6267 g_object_ref(G_OBJECT(anim)); |
| 6265 g_object_unref(loader); |
6268 g_object_unref(loader); |
| 6266 |
|
| 6267 // TODO: FIX THIS!!! |
|
| 6268 //purple_imgstore_unref(custom_img); |
|
| 6269 |
6269 |
| 6270 if (!anim) |
6270 if (!anim) |
| 6271 return; |
6271 return; |
| 6272 gtkconv->u.im->anim = anim; |
6272 gtkconv->u.im->anim = anim; |
| 6273 |
6273 |