pidgin/gtkutils.c

changeset 39688
2b1c2b6e9993
parent 39665
2172e3b8eeef
child 39690
173fe0644961
equal deleted inserted replaced
39687:8358d4cc1480 39688:2b1c2b6e9993
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);
1565 1566
1566 } else { 1567 } else {
1567 1568
1568 conv = PURPLE_CONVERSATION(purple_im_conversation_new(account, who)); 1569 conv = PURPLE_CONVERSATION(purple_im_conversation_new(account, who));
1569 gtkconv = PIDGIN_CONVERSATION(conv); 1570 gtkconv = PIDGIN_CONVERSATION(conv);
1570 pidgin_webview_insert_link(PIDGIN_WEBVIEW(gtkconv->entry), 1571 # warning fix this when talkatu has a way to programmatically add a link.
1571 url, name); 1572 // pidgin_webview_insert_link(PIDGIN_WEBVIEW(gtkconv->entry),
1573 // url, name);
1572 } 1574 }
1573 1575
1574 g_free(type); 1576 g_free(type);
1575 g_free(name); 1577 g_free(name);
1576 g_free(url); 1578 g_free(url);

mercurial