diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-21 21:53:44 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-09-27 21:11:27 +0800 |
commit | a3d1d0df9e007c2d59c03ecaecf19321f60151c1 (patch) | |
tree | 4167edd85317bb58972433617ad1a10d499247c6 /src/empathy-event-manager.c | |
parent | 88fc949d3521c77a8ab9e86f8366f670b940bafb (diff) | |
download | gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.gz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.bz2 gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.lz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.xz gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.tar.zst gsoc2013-empathy-a3d1d0df9e007c2d59c03ecaecf19321f60151c1.zip |
EmpathyTpFile: inherit from TpFileTransferChannel
https://bugzilla.gnome.org/show_bug.cgi?id=658245
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r-- | src/empathy-event-manager.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index a6ce22b18..1e22aa053 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -1115,12 +1115,11 @@ approve_channels (TpSimpleApprover *approver, event_manager_call_channel_got_contact_cb, approval, NULL, G_OBJECT (self)); } - else if (channel_type == TP_IFACE_QUARK_CHANNEL_TYPE_FILE_TRANSFER) + else if (EMPATHY_IS_TP_FILE (channel)) { TpHandle handle; - EmpathyTpFile *tp_file = empathy_tp_file_new (channel); - approval->handler_instance = G_OBJECT (tp_file); + approval->handler_instance = g_object_ref (channel); handle = tp_channel_get_handle (channel, NULL); |