GNOME Bugzilla – Bug 344522
support non-local destination files
Last modified: 2008-10-01 02:13:44 UTC
There should be support for saving the file on a non-local filesystem. While this depends on gnome-vfs, gtk+ should at least not inhibit this. For example, GTK_PRINTER_OPTION_TYPE_FILESAVE handles local filenames instead of URIs. Also the export_filename option of gtkprintoperations probably should be a export_uri?
Created attachment 119230 [details] [review] gvfs patch for file backend Hi, this patch adds support for gvfs (successor of gnome-vfs) to GtkPrintbackendFile. It allows users to enter non-local destination for output. It doesn't change the "export_filename" property of GtkPrintOperation. The "export_filename" is used in run_pdf which calls cairo_pdf_surface_create() but the cairo_pdf_surface_create() doesn't handle URIs. Regards Marek
Is this missing a g_object_set (priv->combo, "local-only", FALSE, NULL); in gtkprinteroptionwidget.c ? So that one can actually select a non-local destination...
Created attachment 119589 [details] [review] actualized patch Hi Matthias, thanks for the comment. I modified patch accordingly. Marek
Noticed this comment /* TODO: how do we support nonlocal file systems? */ should probably be removed when the patch is committed.
Other than that, it looks good to me.