Mercurial > pidgin.yaz
comparison pidgin/gtkutils.c @ 21235:fba1f6c3df0b
Converted string literal UI hints to #define-ed constants and fixed two cast-warnings in gtkblist.c
author | Gabriel Schulhof <nix@go-nix.ca> |
---|---|
date | Sun, 14 Oct 2007 18:07:19 +0000 |
parents | 7e200a629109 |
children | 73c5f5bfeb39 a20ef7180680 |
comparison
equal
deleted
inserted
replaced
21234:aabe638f56d9 | 21235:fba1f6c3df0b |
---|---|
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 "conversation", data, | 1540 PURPLE_REQUEST_HINT_CONV, 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 "conversation", data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); | 1550 PURPLE_REQUEST_HINT_CONV, 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 "conversation", data, | 1560 PURPLE_REQUEST_HINT_CONV, 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; |