pidgin/gtkutils.c

changeset 21226
a60b30c9eeb5
parent 21225
32d8e16cb7a9
child 21351
4c83d3121e8b
equal deleted inserted replaced
21225:32d8e16cb7a9 21226:a60b30c9eeb5
1535 _("You can send this image as a file transfer, " 1535 _("You can send this image as a file transfer, "
1536 "embed it into this message, or use it as the buddy icon for this user."), 1536 "embed it into this message, or use it as the buddy icon for this user."),
1537 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback, 1537 DND_FILE_TRANSFER, "OK", (GCallback)dnd_image_ok_callback,
1538 "Cancel", (GCallback)dnd_image_cancel_callback, 1538 "Cancel", (GCallback)dnd_image_cancel_callback,
1539 account, who, NULL, 1539 account, who, NULL,
1540 PURPLE_REQUEST_HINT_CONV, data, 1540 "conversation", data,
1541 _("Set as buddy icon"), DND_BUDDY_ICON, 1541 _("Set as buddy icon"), DND_BUDDY_ICON,
1542 _("Send image file"), DND_FILE_TRANSFER, 1542 _("Send image file"), DND_FILE_TRANSFER,
1543 _("Insert in message"), DND_IM_IMAGE, 1543 _("Insert in message"), DND_IM_IMAGE,
1544 NULL); 1544 NULL);
1545 else if (!(im || ft)) 1545 else if (!(im || ft))
1546 purple_request_yes_no_with_hint(NULL, NULL, _("You have dragged an image"), 1546 purple_request_yes_no_with_hint(NULL, NULL, _("You have dragged an image"),
1547 _("Would you like to set it as the buddy icon for this user?"), 1547 _("Would you like to set it as the buddy icon for this user?"),
1548 0, 1548 0,
1549 account, who, NULL, 1549 account, who, NULL,
1550 PURPLE_REQUEST_HINT_CONV, data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); 1550 "conversation", data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb);
1551 else 1551 else
1552 purple_request_choice_with_hint(NULL, NULL, 1552 purple_request_choice_with_hint(NULL, NULL,
1553 _("You have dragged an image"), 1553 _("You have dragged an image"),
1554 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") : 1554 (ft ? _("You can send this image as a file transfer, or use it as the buddy icon for this user.") :
1555 _("You can insert this image into this message, or use it as the buddy icon for this user")), 1555 _("You can insert this image into this message, or use it as the buddy icon for this user")),
1556 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE), 1556 (ft ? DND_FILE_TRANSFER : DND_IM_IMAGE),
1557 "OK", (GCallback)dnd_image_ok_callback, 1557 "OK", (GCallback)dnd_image_ok_callback,
1558 "Cancel", (GCallback)dnd_image_cancel_callback, 1558 "Cancel", (GCallback)dnd_image_cancel_callback,
1559 account, who, NULL, 1559 account, who, NULL,
1560 PURPLE_REQUEST_HINT_CONV, data, 1560 "conversation", data,
1561 _("Set as buddy icon"), DND_BUDDY_ICON, 1561 _("Set as buddy icon"), DND_BUDDY_ICON,
1562 (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),
1563 NULL); 1563 NULL);
1564 gdk_pixbuf_unref(pb); 1564 gdk_pixbuf_unref(pb);
1565 return; 1565 return;

mercurial