Mercurial > pidgin.yaz
comparison src/ft.c @ 7738:b14442b31a9b
[gaim-migrate @ 8383]
This patch from Tim R. (I'll remember your last name next time), snazzes
up the file transfer dialog a bit. I also went in and hacked on
gtkcellrenderer a bit, so that if you expand the column, the renderer will
grow.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 04 Dec 2003 05:58:26 +0000 |
parents | 02f697df677b |
children | 5f0bb52c0609 |
comparison
equal
deleted
inserted
replaced
7737:c497b3bb7581 | 7738:b14442b31a9b |
---|---|
182 g_return_val_if_fail(xfer != NULL, NULL); | 182 g_return_val_if_fail(xfer != NULL, NULL); |
183 | 183 |
184 return xfer->account; | 184 return xfer->account; |
185 } | 185 } |
186 | 186 |
187 GaimXferCancelType | |
188 gaim_xfer_is_canceled(const GaimXfer *xfer) | |
189 { | |
190 g_return_val_if_fail(xfer != NULL, TRUE); | |
191 | |
192 return xfer->canceled; | |
193 } | |
194 | |
187 gboolean | 195 gboolean |
188 gaim_xfer_is_completed(const GaimXfer *xfer) | 196 gaim_xfer_is_completed(const GaimXfer *xfer) |
189 { | 197 { |
190 g_return_val_if_fail(xfer != NULL, TRUE); | 198 g_return_val_if_fail(xfer != NULL, TRUE); |
191 | 199 |
272 gaim_xfer_get_remote_port(const GaimXfer *xfer) | 280 gaim_xfer_get_remote_port(const GaimXfer *xfer) |
273 { | 281 { |
274 g_return_val_if_fail(xfer != NULL, -1); | 282 g_return_val_if_fail(xfer != NULL, -1); |
275 | 283 |
276 return xfer->remote_port; | 284 return xfer->remote_port; |
285 } | |
286 | |
287 static void | |
288 gaim_xfer_set_canceled(GaimXfer *xfer, GaimXferCancelType canceled) | |
289 { | |
290 g_return_if_fail(xfer != NULL); | |
291 | |
292 xfer->canceled = canceled; | |
277 } | 293 } |
278 | 294 |
279 void | 295 void |
280 gaim_xfer_set_completed(GaimXfer *xfer, gboolean completed) | 296 gaim_xfer_set_completed(GaimXfer *xfer, gboolean completed) |
281 { | 297 { |
608 { | 624 { |
609 GaimXferUiOps *ui_ops; | 625 GaimXferUiOps *ui_ops; |
610 | 626 |
611 g_return_if_fail(xfer != NULL); | 627 g_return_if_fail(xfer != NULL); |
612 | 628 |
629 gaim_xfer_set_canceled(xfer, GAIM_XFER_CANCEL_LOCAL); | |
630 | |
613 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) | 631 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) |
614 { | 632 { |
615 if (xfer->ops.cancel_send != NULL) | 633 if (xfer->ops.cancel_send != NULL) |
616 xfer->ops.cancel_send(xfer); | 634 xfer->ops.cancel_send(xfer); |
617 } | 635 } |
646 gaim_xfer_cancel_remote(GaimXfer *xfer) | 664 gaim_xfer_cancel_remote(GaimXfer *xfer) |
647 { | 665 { |
648 GaimXferUiOps *ui_ops; | 666 GaimXferUiOps *ui_ops; |
649 | 667 |
650 g_return_if_fail(xfer != NULL); | 668 g_return_if_fail(xfer != NULL); |
669 | |
670 gaim_xfer_set_canceled(xfer, GAIM_XFER_CANCEL_REMOTE); | |
651 | 671 |
652 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) | 672 if (gaim_xfer_get_type(xfer) == GAIM_XFER_SEND) |
653 { | 673 { |
654 if (xfer->ops.cancel_send != NULL) | 674 if (xfer->ops.cancel_send != NULL) |
655 xfer->ops.cancel_send(xfer); | 675 xfer->ops.cancel_send(xfer); |