Mercurial > pidgin
comparison src/ft.c @ 9772:5f7c81eeebd2
[gaim-migrate @ 10640]
Another ft patch from Dave West. This one makes transfers appear in the
ft dialog earlier. I'm a bit concerned that transfers might not be
removed correctly when canceled early on. Or that they won't show up
with the right status between the time they're initiated and the time
the file actually begins being transferred.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 18 Aug 2004 04:22:31 +0000 |
parents | 9812dde4323e |
children | 3cd8143b84b8 |
comparison
equal
deleted
inserted
replaced
9771:9812dde4323e | 9772:5f7c81eeebd2 |
---|---|
318 /* TODO: Sanity checks and file overwrite checks. */ | 318 /* TODO: Sanity checks and file overwrite checks. */ |
319 | 319 |
320 gaim_xfer_set_local_filename(xfer, filename); | 320 gaim_xfer_set_local_filename(xfer, filename); |
321 } | 321 } |
322 | 322 |
323 | |
324 xfer->ops.init(xfer); | 323 xfer->ops.init(xfer); |
324 gaim_xfer_add(xfer); | |
325 } | 325 } |
326 | 326 |
327 void | 327 void |
328 gaim_xfer_request_denied(GaimXfer *xfer) | 328 gaim_xfer_request_denied(GaimXfer *xfer) |
329 { | 329 { |
711 } | 711 } |
712 | 712 |
713 static void | 713 static void |
714 begin_transfer(GaimXfer *xfer, GaimInputCondition cond) | 714 begin_transfer(GaimXfer *xfer, GaimInputCondition cond) |
715 { | 715 { |
716 GaimXferUiOps *ui_ops; | |
717 GaimXferType type = gaim_xfer_get_type(xfer); | 716 GaimXferType type = gaim_xfer_get_type(xfer); |
718 | |
719 ui_ops = gaim_xfer_get_ui_ops(xfer); | |
720 | 717 |
721 /* | 718 /* |
722 * We'll have already tried to open this earlier to make sure we can | 719 * We'll have already tried to open this earlier to make sure we can |
723 * read/write here. Should be safe. | 720 * read/write here. Should be safe. |
724 */ | 721 */ |
731 return; | 728 return; |
732 } | 729 } |
733 | 730 |
734 xfer->watcher = gaim_input_add(xfer->fd, cond, transfer_cb, xfer); | 731 xfer->watcher = gaim_input_add(xfer->fd, cond, transfer_cb, xfer); |
735 | 732 |
736 if (ui_ops != NULL && ui_ops->add_xfer != NULL) | |
737 ui_ops->add_xfer(xfer); | |
738 | |
739 if (xfer->ops.start != NULL) | 733 if (xfer->ops.start != NULL) |
740 xfer->ops.start(xfer); | 734 xfer->ops.start(xfer); |
741 } | 735 } |
742 | 736 |
743 static void | 737 static void |