pidgin/gtkutils.c

changeset 21630
591a79c1b295
parent 21504
0c78851f576b
parent 21352
e10c4ea18f7c
child 21682
cfbbf5c5217f
child 21729
a06176e84f3a
child 22000
5e7708f58d3d
equal deleted inserted replaced
21629:8a4bca00cb1b 21630:591a79c1b295
1529 ft = prpl_info->can_receive_file(gc, who); 1529 ft = prpl_info->can_receive_file(gc, who);
1530 else if (prpl_info && prpl_info->send_file) 1530 else if (prpl_info && prpl_info->send_file)
1531 ft = TRUE; 1531 ft = TRUE;
1532 1532
1533 if (im && ft) 1533 if (im && ft)
1534 purple_request_choice_with_hint(NULL, NULL, 1534 purple_request_choice(NULL, NULL,
1535 _("You have dragged an image"), 1535 _("You have dragged an image"),
1536 _("You can send this image as a file transfer, " 1536 _("You can send this image as a file transfer, "
1537 "embed it into this message, or use it as the buddy icon for this user."), 1537 "embed it into this message, or use it as the buddy icon for this user."),
1538 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback, 1538 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback,
1539 "Cancel", (GCallback)dnd_image_cancel_callback, 1539 "Cancel", (GCallback)dnd_image_cancel_callback,
1540 account, who, NULL, 1540 account, who, NULL,
1541 PURPLE_REQUEST_UI_HINT_CONV, data, 1541 data,
1542 _("Set as buddy icon"), DND_BUDDY_ICON, 1542 _("Set as buddy icon"), DND_BUDDY_ICON,
1543 _("Send image file"), DND_FILE_TRANSFER, 1543 _("Send image file"), DND_FILE_TRANSFER,
1544 _("Insert in message"), DND_IM_IMAGE, 1544 _("Insert in message"), DND_IM_IMAGE,
1545 NULL); 1545 NULL);
1546 else if (!(im || ft)) 1546 else if (!(im || ft))
1547 purple_request_yes_no_with_hint(NULL, NULL, _("You have dragged an image"), 1547 purple_request_yes_no(NULL, NULL, _("You have dragged an image"),
1548 _("Would you like to set it as the buddy icon for this user?"), 1548 _("Would you like to set it as the buddy icon for this user?"),
1549 0, 1549 0,
1550 account, who, NULL, 1550 account, who, NULL,
1551 PURPLE_REQUEST_UI_HINT_CONV, data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); 1551 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb);
1552 else 1552 else
1553 purple_request_choice_with_hint(NULL, NULL, 1553 purple_request_choice(NULL, NULL,
1554 _("You have dragged an image"), 1554 _("You have dragged an image"),
1555 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : 1555 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") :
1556 _("You can insert this image into this message, or use it as the buddy icon for this user")), 1556 _("You can insert this image into this message, or use it as the buddy icon for this user")),
1557 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), 1557 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
1558 "OK", (GCallback)dnd_image_ok_callback, 1558 "OK", (GCallback)dnd_image_ok_callback,
1559 "Cancel", (GCallback)dnd_image_cancel_callback, 1559 "Cancel", (GCallback)dnd_image_cancel_callback,
1560 account, who, NULL, 1560 account, who, NULL,
1561 PURPLE_REQUEST_UI_HINT_CONV, data, 1561 data,
1562 _("Set as buddy icon"), DND_BUDDY_ICON, 1562 _("Set as buddy icon"), DND_BUDDY_ICON,
1563 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), 1563 (ft ? _("Send image file") : _("Insert in message")), (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
1564 NULL); 1564 NULL);
1565 gdk_pixbuf_unref(pb); 1565 gdk_pixbuf_unref(pb);
1566 return; 1566 return;

mercurial