On Wed, 2005-12-14 at 19:37 +0100, Murray Cumming wrote:
>
>
> //Create VFS URI from dodgy filename:
> GnomeVFSURI* uri = gnome_vfs_uri_new(filename);
> g_assert(uri);
This is not right. gnome_vfs_uri_new() takes a uri argument, not a
filename argument. You must use gnome_vfs_get_uri_from_local_path().
Its a bit unfortunate that gnome_vfs_uri_new appends file: as the
default method name if you give none, as that results in broken uris if
you just pass in a filename.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
[EMAIL PROTECTED] [EMAIL PROTECTED]
He's a war-weary Jewish photographer on the wrong side of the law. She's a
foxy winged hooker with an evil twin sister. They fight crime!
_______________________________________________
gnome-vfs-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-vfs-list