Re: Can someone please comment on this short program
- From: Alexander Larsson <alexl redhat com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gnome-vfs-list gnome org, Matthias Kaeppler <matthias finitestate org>
- Subject: Re: Can someone please comment on this short program
- Date: Thu, 15 Dec 2005 10:37:41 +0100
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
alexl redhat com alla lysator liu se
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!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]