| 527 return; |
527 return; |
| 528 } |
528 } |
| 529 |
529 |
| 530 name = strrchr(filename, G_DIR_SEPARATOR) + 1; |
530 name = strrchr(filename, G_DIR_SEPARATOR) + 1; |
| 531 |
531 |
| 532 id = purple_imgstore_add_with_id(filedata, size, name); |
532 id = purple_imgstore_new_with_id(filedata, size, name); |
| 533 |
533 |
| 534 if (id == 0) { |
534 if (id == 0) { |
| 535 buf = g_strdup_printf(_("Failed to store image: %s\n"), filename); |
535 buf = g_strdup_printf(_("Failed to store image: %s\n"), filename); |
| 536 purple_notify_error(NULL, NULL, buf, NULL); |
536 purple_notify_error(NULL, NULL, buf, NULL); |
| 537 |
537 |