comparison libpurple/ft.c @ 30286:ce52e101844a

Scale incoming thumbnails in the request dialog if they are overly large WLM seems to send animations in some situations as a series of frames "encoded" in a wide PNG...
author Marcus Lundblad <ml@update.uu.se>
date Mon, 03 May 2010 20:23:17 +0000
parents afc9cec164e4
children 1cdae196aac8
comparison
equal deleted inserted replaced
30285:5286451c3d44 30286:ce52e101844a
519 xfer->who, xfer->message, 0, time(NULL)); 519 xfer->who, xfer->message, 0, time(NULL));
520 520
521 if ((thumb = purple_xfer_get_thumbnail(xfer, &thumb_size))) { 521 if ((thumb = purple_xfer_get_thumbnail(xfer, &thumb_size))) {
522 purple_request_accept_cancel_with_icon(xfer, NULL, buf, NULL, 522 purple_request_accept_cancel_with_icon(xfer, NULL, buf, NULL,
523 PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL, 523 PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL,
524 thumb, thumb_size, xfer, 524 thumb, thumb_size, xfer,
525 G_CALLBACK(purple_xfer_choose_file), 525 G_CALLBACK(purple_xfer_choose_file),
526 G_CALLBACK(cancel_recv_cb)); 526 G_CALLBACK(cancel_recv_cb));
527 } else { 527 } else {
528 purple_request_accept_cancel(xfer, NULL, buf, NULL, 528 purple_request_accept_cancel(xfer, NULL, buf, NULL,
529 PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL, 529 PURPLE_DEFAULT_ACTION_NONE, xfer->account, xfer->who, NULL,