comparison pidgin/gtkutils.c @ 21095:cab348e39751

disapproval of revision '0e5385979f58d6ee74f668bb9b5dfd1ae3b6043f'
author Richard Laager <rlaager@wiktel.com>
date Sun, 14 Oct 2007 00:26:00 +0000
parents 8c9aad9479c0
children 84b9b98070e5 51cf02dbdb0e
comparison
equal deleted inserted replaced
21086:8c9aad9479c0 21095:cab348e39751
1525 1525
1526 if (prpl_info && prpl_info->can_receive_file) 1526 if (prpl_info && prpl_info->can_receive_file)
1527 ft = prpl_info->can_receive_file(gc, who); 1527 ft = prpl_info->can_receive_file(gc, who);
1528 1528
1529 if (im && ft) 1529 if (im && ft)
1530 purple_request_choice(NULL, NULL, 1530 purple_request_choice_with_hint(NULL, NULL,
1531 _("You have dragged an image"), 1531 _("You have dragged an image"),
1532 _("You can send this image as a file transfer, " 1532 _("You can send this image as a file transfer, "
1533 "embed it into this message, or use it as the buddy icon for this user."), 1533 "embed it into this message, or use it as the buddy icon for this user."),
1534 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback, 1534 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback,
1535 "Cancel", (GCallback)dnd_image_cancel_callback, 1535 "Cancel", (GCallback)dnd_image_cancel_callback,
1536 account, who, NULL, 1536 account, who, NULL,
1537 data, 1537 "conversation", data,
1538 _("Set as buddy icon"), DND_BUDDY_ICON, 1538 _("Set as buddy icon"), DND_BUDDY_ICON,
1539 _("Send image file"), DND_FILE_TRANSFER, 1539 _("Send image file"), DND_FILE_TRANSFER,
1540 _("Insert in message"), DND_IM_IMAGE, 1540 _("Insert in message"), DND_IM_IMAGE,
1541 NULL); 1541 NULL);
1542 else if (!(im || ft)) 1542 else if (!(im || ft))
1543 purple_request_yes_no(NULL, NULL, _("You have dragged an image"), 1543 purple_request_yes_no_with_hint(NULL, NULL, _("You have dragged an image"),
1544 _("Would you like to set it as the buddy icon for this user?"), 1544 _("Would you like to set it as the buddy icon for this user?"),
1545 0, 1545 0,
1546 account, who, NULL, 1546 account, who, NULL,
1547 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); 1547 "conversation", data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb);
1548 else 1548 else
1549 purple_request_choice(NULL, NULL, 1549 purple_request_choice_with_hint(NULL, NULL,
1550 _("You have dragged an image"), 1550 _("You have dragged an image"),
1551 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : 1551 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") :
1552 _("You can insert this image into this message, or use it as the buddy icon for this user")), 1552 _("You can insert this image into this message, or use it as the buddy icon for this user")),
1553 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), 1553 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
1554 "OK", (GCallback)dnd_image_ok_callback, 1554 "OK", (GCallback)dnd_image_ok_callback,
1555 "Cancel", (GCallback)dnd_image_cancel_callback, 1555 "Cancel", (GCallback)dnd_image_cancel_callback,
1556 account, who, NULL, 1556 account, who, NULL,
1557 data, 1557 "conversation", data,
1558 _("Set as buddy icon"), DND_BUDDY_ICON, 1558 _("Set as buddy icon"), DND_BUDDY_ICON,
1559 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), 1559 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
1560 NULL); 1560 NULL);
1561 return; 1561 return;
1562 } 1562 }