static void
on_set_stream_finished (TnyMimePart *self, gboolean cancelled, TnyStream *stream, GError *err, gpointer user_data)
{
	SomeData *info = (SomeData *) user_data;

	g_object_unref (info->tny_stream);
	gtk_html_stream_destroy (info->gtkhtml_stream);
	g_object_unref (info->self);

	g_slice_free (SomeData, user_data);
}
Ejemplo n.º 2
0
void
gtk_html_stream_close (GtkHTMLStream *stream,
		       GtkHTMLStreamStatus status)
{
	g_return_if_fail (stream != NULL);

	if (stream->close_func != NULL)
		stream->close_func (stream, status, stream->user_data);

	gtk_html_stream_destroy (stream);
}