empathy r1760 - trunk/libempathy



Author: xclaesse
Date: Fri Nov 21 16:15:17 2008
New Revision: 1760
URL: http://svn.gnome.org/viewvc/empathy?rev=1760&view=rev

Log:
Implemented empathy_file_cancel. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy/empathy-file.c
   trunk/libempathy/empathy-file.h

Modified: trunk/libempathy/empathy-file.c
==============================================================================
--- trunk/libempathy/empathy-file.c	(original)
+++ trunk/libempathy/empathy-file.c	Fri Nov 21 16:15:17 2008
@@ -894,6 +894,18 @@
 }
 
 void
+empathy_file_cancel (EmpathyFile *file)
+{
+  EmpathyFilePriv *priv;
+
+  priv = GET_PRIV (file);
+
+  g_cancellable_cancel (priv->cancellable);
+
+  tp_cli_channel_run_close (priv->channel, -1, NULL, NULL);
+}
+
+void
 empathy_file_set_input_stream (EmpathyFile *file,
     GInputStream *in_stream)
 {

Modified: trunk/libempathy/empathy-file.h
==============================================================================
--- trunk/libempathy/empathy-file.h	(original)
+++ trunk/libempathy/empathy-file.h	Fri Nov 21 16:15:17 2008
@@ -84,6 +84,7 @@
 										GOutputStream *uri);
 void                                    empathy_file_set_filename            (EmpathyFile   *file,
 										const gchar   *filename);
+void                                    empathy_file_cancel                  (EmpathyFile   *file);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]