| 554 const char *protoname = NULL; |
554 const char *protoname = NULL; |
| 555 char *tmp; |
555 char *tmp; |
| 556 char *filename = NULL; |
556 char *filename = NULL; |
| 557 GdkPixbuf *pixbuf; |
557 GdkPixbuf *pixbuf; |
| 558 |
558 |
| 559 if (!PURPLE_PROTOCOL_IMPLEMENTS(protocol, list_icon)) |
|
| 560 return NULL; |
|
| 561 |
|
| 562 protoname = purple_protocol_class_list_icon(protocol, account, NULL); |
559 protoname = purple_protocol_class_list_icon(protocol, account, NULL); |
| 563 if (protoname == NULL) |
560 if (protoname == NULL) |
| 564 return NULL; |
561 return NULL; |
| 565 |
562 |
| 566 /* |
563 /* |
| 1487 protocol = purple_connection_get_protocol(gc); |
1484 protocol = purple_connection_get_protocol(gc); |
| 1488 |
1485 |
| 1489 if (protocol && purple_protocol_get_options(protocol) & OPT_PROTO_IM_IMAGE) |
1486 if (protocol && purple_protocol_get_options(protocol) & OPT_PROTO_IM_IMAGE) |
| 1490 im = TRUE; |
1487 im = TRUE; |
| 1491 |
1488 |
| 1492 if (protocol && PURPLE_PROTOCOL_IMPLEMENTS(protocol, can_receive_file)) |
1489 if (protocol && PURPLE_PROTOCOL_IMPLEMENTS(protocol, XFER_IFACE, can_receive)) |
| 1493 ft = purple_protocol_xfer_iface_can_receive(protocol, gc, who); |
1490 ft = purple_protocol_xfer_iface_can_receive(protocol, gc, who); |
| 1494 else if (protocol && PURPLE_PROTOCOL_IMPLEMENTS(protocol, send_file)) |
1491 else if (protocol && PURPLE_PROTOCOL_IMPLEMENTS(protocol, XFER_IFACE, send)) |
| 1495 ft = TRUE; |
1492 ft = TRUE; |
| 1496 |
1493 |
| 1497 if (im && ft) |
1494 if (im && ft) |
| 1498 purple_request_choice(NULL, NULL, |
1495 purple_request_choice(NULL, NULL, |
| 1499 _("You have dragged an image"), |
1496 _("You have dragged an image"), |