Mercurial > pidgin
comparison src/ft.c @ 4553:d03fcb3f4be2
[gaim-migrate @ 4833]
We have a brand new file transfer dialog!
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Fri, 07 Feb 2003 20:55:20 +0000 |
| parents | d83c5b925a05 |
| children | ff3b123aed43 |
comparison
equal
deleted
inserted
replaced
| 4552:a2f2a717fdf2 | 4553:d03fcb3f4be2 |
|---|---|
| 504 ui_ops = gaim_xfer_get_ui_ops(xfer); | 504 ui_ops = gaim_xfer_get_ui_ops(xfer); |
| 505 | 505 |
| 506 if (ui_ops != NULL && ui_ops->update_progress != NULL) | 506 if (ui_ops != NULL && ui_ops->update_progress != NULL) |
| 507 ui_ops->update_progress(xfer, gaim_xfer_get_progress(xfer)); | 507 ui_ops->update_progress(xfer, gaim_xfer_get_progress(xfer)); |
| 508 | 508 |
| 509 if (xfer->completed) | 509 if (gaim_xfer_is_completed(xfer)) |
| 510 gaim_xfer_end(xfer); | 510 gaim_xfer_end(xfer); |
| 511 } | 511 } |
| 512 | 512 |
| 513 static void | 513 static void |
| 514 begin_transfer(struct gaim_xfer *xfer, GaimInputCondition cond) | 514 begin_transfer(struct gaim_xfer *xfer, GaimInputCondition cond) |
| 616 | 616 |
| 617 if (xfer->dest_fp != NULL) { | 617 if (xfer->dest_fp != NULL) { |
| 618 fclose(xfer->dest_fp); | 618 fclose(xfer->dest_fp); |
| 619 xfer->dest_fp = NULL; | 619 xfer->dest_fp = NULL; |
| 620 } | 620 } |
| 621 | |
| 622 /* Delete the transfer. */ | |
| 623 gaim_xfer_destroy(xfer); | |
| 624 } | 621 } |
| 625 | 622 |
| 626 void | 623 void |
| 627 gaim_xfer_cancel(struct gaim_xfer *xfer) | 624 gaim_xfer_cancel(struct gaim_xfer *xfer) |
| 628 { | 625 { |
| 651 | 648 |
| 652 if (ui_ops != NULL && ui_ops->cancel != NULL) | 649 if (ui_ops != NULL && ui_ops->cancel != NULL) |
| 653 ui_ops->cancel(xfer); | 650 ui_ops->cancel(xfer); |
| 654 | 651 |
| 655 xfer->bytes_remaining = 0; | 652 xfer->bytes_remaining = 0; |
| 656 | |
| 657 /* Delete the transfer. */ | |
| 658 gaim_xfer_destroy(xfer); | |
| 659 } | 653 } |
| 660 | 654 |
| 661 void | 655 void |
| 662 gaim_xfer_error(GaimXferType type, const char *who, const char *msg) | 656 gaim_xfer_error(GaimXferType type, const char *who, const char *msg) |
| 663 { | 657 { |
