pidgin/gtkutils.c

changeset 20976
c5cf79b99382
parent 20895
d8cf51630588
child 21009
3cea46e6b9d0
child 21173
8e191599d715
child 21191
9a18023810b5
child 21367
d8f93f958500
equal deleted inserted replaced
20975:bdcc492d3fbe 20976:c5cf79b99382
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? */

mercurial