pidgin/gtkutils.c

branch
elb.make
changeset 21478
0f235cbab71c
parent 21381
d28824be6224
parent 21453
a90cf329cd48
equal deleted inserted replaced
21400:2ab9d1d432a2 21478:0f235cbab71c
1528 ft = prpl_info->can_receive_file(gc, who); 1528 ft = prpl_info->can_receive_file(gc, who);
1529 else if (prpl_info && prpl_info->send_file) 1529 else if (prpl_info && prpl_info->send_file)
1530 ft = TRUE; 1530 ft = TRUE;
1531 1531
1532 if (im && ft) 1532 if (im && ft)
1533 purple_request_choice(NULL, NULL, 1533 purple_request_choice_with_hint(NULL, NULL,
1534 _("You have dragged an image"), 1534 _("You have dragged an image"),
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 data, 1540 PURPLE_REQUEST_UI_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(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 data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb); 1550 PURPLE_REQUEST_UI_HINT_CONV, data, (GCallback)dnd_set_icon_ok_cb, (GCallback)dnd_set_icon_cancel_cb);
1551 else 1551 else
1552 purple_request_choice(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 data, 1560 PURPLE_REQUEST_UI_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;

mercurial