| 1387 shortname = strrchr(data->filename, G_DIR_SEPARATOR); |
1387 shortname = strrchr(data->filename, G_DIR_SEPARATOR); |
| 1388 shortname = shortname ? shortname + 1 : data->filename; |
1388 shortname = shortname ? shortname + 1 : data->filename; |
| 1389 img = purple_image_new_from_data((guint8 *)filedata, size); |
1389 img = purple_image_new_from_data((guint8 *)filedata, size); |
| 1390 purple_image_set_friendly_filename(img, shortname); |
1390 purple_image_set_friendly_filename(img, shortname); |
| 1391 |
1391 |
| 1392 pidgin_webview_insert_image(PIDGIN_WEBVIEW(gtkconv->entry), img); |
1392 # warning fix this when talkatu has a way to programmatically insert an image |
| |
1393 // pidgin_webview_insert_image(PIDGIN_WEBVIEW(gtkconv->entry), img); |
| 1393 g_object_unref(img); |
1394 g_object_unref(img); |
| 1394 |
1395 |
| 1395 break; |
1396 break; |
| 1396 } |
1397 } |
| 1397 g_free(data->filename); |
1398 g_free(data->filename); |