| 182 filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId); |
182 filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId); |
| 183 if (g_file_get_contents(filename, &imgdata, &imglen, NULL)) { |
183 if (g_file_get_contents(filename, &imgdata, &imglen, NULL)) { |
| 184 char buf[128]; |
184 char buf[128]; |
| 185 |
185 |
| 186 /* Add splash-image to imagestore */ |
186 /* Add splash-image to imagestore */ |
| 187 imgid = purple_imgstore_add_with_id(g_memdup(imgdata, imglen), imglen, NULL); |
187 imgid = purple_imgstore_new_with_id(g_memdup(imgdata, imglen), imglen, NULL); |
| 188 |
188 |
| 189 /* Generate and display message */ |
189 /* Generate and display message */ |
| 190 g_snprintf(buf, sizeof(buf), |
190 g_snprintf(buf, sizeof(buf), |
| 191 "<img src=\"" PURPLE_STORED_IMAGE_PROTOCOL "%d\">", imgid); |
191 "<img src=\"" PURPLE_STORED_IMAGE_PROTOCOL "%d\">", imgid); |
| 192 |
192 |