| 1505 data->filename = g_strdup(filename); |
1505 data->filename = g_strdup(filename); |
| 1506 data->account = account; |
1506 data->account = account; |
| 1507 |
1507 |
| 1508 if (gc) |
1508 if (gc) |
| 1509 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
1509 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| |
1510 |
| 1510 if (prpl_info && prpl_info->options & OPT_PROTO_IM_IMAGE) |
1511 if (prpl_info && prpl_info->options & OPT_PROTO_IM_IMAGE) |
| 1511 im = TRUE; |
1512 im = TRUE; |
| 1512 |
1513 |
| 1513 if (prpl_info && prpl_info->send_file) |
1514 if (prpl_info && prpl_info->can_receive_file) |
| 1514 ft = prpl_info->can_receive_file(gc, who); |
1515 ft = prpl_info->can_receive_file(gc, who); |
| 1515 |
1516 |
| 1516 if (im && ft) |
1517 if (im && ft) |
| 1517 gaim_request_choice(NULL, NULL, |
1518 gaim_request_choice(NULL, NULL, |
| 1518 _("You have dragged an image"), |
1519 _("You have dragged an image"), |