diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:20:08 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:20:08 +0800 |
commit | eea54e53f10ae888953b4917a90d9af98210b624 (patch) | |
tree | 9e08776c82fc51232768e8c136cf20688e2b3c26 /libempathy/empathy-dispatcher.c | |
parent | 77b81a304ed3c6203829196fd268122d563fbe63 (diff) | |
download | gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar.gz gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar.bz2 gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar.lz gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar.xz gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.tar.zst gsoc2013-empathy-eea54e53f10ae888953b4917a90d9af98210b624.zip |
Don't expose streams in EmpathyTpFile, but use the GFile. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1837 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index a110a2f94..69a8e80cc 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -933,7 +933,6 @@ empathy_dispatcher_send_file (EmpathyContact *contact, { GFileInfo *info; guint64 size; - GInputStream *in_stream = NULL; MissionControl *mc; McAccount *account; TpConnection *connection; @@ -954,7 +953,6 @@ empathy_dispatcher_send_file (EmpathyContact *contact, 0, NULL, NULL); size = info ? g_file_info_get_size (info) : EMPATHY_TP_FILE_UNKNOWN_SIZE; filename = g_file_get_basename (gfile); - in_stream = G_INPUT_STREAM (g_file_read (gfile, NULL, NULL)); mc = empathy_mission_control_new (); account = empathy_contact_get_account (contact); connection = mission_control_get_tpconnection (mc, account, NULL); @@ -1014,7 +1012,7 @@ empathy_dispatcher_send_file (EmpathyContact *contact, tp_file = empathy_tp_file_new (channel); if (tp_file) { - empathy_tp_file_set_input_stream (tp_file, in_stream); + empathy_tp_file_set_gfile (tp_file, gfile, NULL); } empathy_tp_file_offer (tp_file); |