comparison pidgin/gtkutils.c @ 21086:8c9aad9479c0

Removed request stuff - now on pidgin-request-ui-hint
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 10 Oct 2007 22:57:51 +0000
parents fdefa5eb46e2
children fc80a99f6f40 cab348e39751
comparison
equal deleted inserted replaced
21077:488796f5ba33 21086:8c9aad9479c0
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_with_hint(NULL, NULL, 1530 purple_request_choice(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 "conversation", data, 1537 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_with_hint(NULL, NULL, _("You have dragged an image"), 1543 purple_request_yes_no(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 "conversation", data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); 1547 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb);
1548 else 1548 else
1549 purple_request_choice_with_hint(NULL, NULL, 1549 purple_request_choice(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 "conversation", data, 1557 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 }