}
}
+extern size_t gvdevice_write(GVJ_t * job, char *s, unsigned int len);
+
static gboolean
writer ( const gchar *buf, gsize count, GError **error, gpointer data)
{
- if (count == fwrite(buf, 1, count, (FILE *)data))
+ if (count == gvdevice_write((GVJ_t *)data, (char*)buf, count))
return TRUE;
return FALSE;
}
NULL // destroy_fn_data
);
- gdk_pixbuf_save_to_callback(pixbuf, writer, job->output_file, format_str, NULL, NULL);
+ gdk_pixbuf_save_to_callback(pixbuf, writer, job, format_str, NULL, NULL);
gdk_pixbuf_unref(pixbuf);
}