| 1524 if (prpl_info && prpl_info->options & OPT_PROTO_IM_IMAGE) |
1524 if (prpl_info && prpl_info->options & OPT_PROTO_IM_IMAGE) |
| 1525 im = TRUE; |
1525 im = TRUE; |
| 1526 |
1526 |
| 1527 if (prpl_info && prpl_info->can_receive_file) |
1527 if (prpl_info && prpl_info->can_receive_file) |
| 1528 ft = prpl_info->can_receive_file(gc, who); |
1528 ft = prpl_info->can_receive_file(gc, who); |
| |
1529 else if (prpl_info && prpl_info->send_file) |
| |
1530 ft = TRUE; |
| 1529 |
1531 |
| 1530 if (im && ft) |
1532 if (im && ft) |
| 1531 purple_request_choice(NULL, NULL, |
1533 purple_request_choice(NULL, NULL, |
| 1532 _("You have dragged an image"), |
1534 _("You have dragged an image"), |
| 1533 _("You can send this image as a file transfer, " |
1535 _("You can send this image as a file transfer, " |
| 1557 account, who, NULL, |
1559 account, who, NULL, |
| 1558 data, |
1560 data, |
| 1559 _("Set as buddy icon"), DND_BUDDY_ICON, |
1561 _("Set as buddy icon"), DND_BUDDY_ICON, |
| 1560 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
1562 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), |
| 1561 NULL); |
1563 NULL); |
| |
1564 gdk_pixbuf_unref(pb); |
| 1562 return; |
1565 return; |
| 1563 } |
1566 } |
| 1564 |
1567 |
| 1565 #ifndef _WIN32 |
1568 #ifndef _WIN32 |
| 1566 /* Are we trying to send a .desktop file? */ |
1569 /* Are we trying to send a .desktop file? */ |