Hi, Currently, it is possible to hide several parts of an URI when using gnome_vfs_uri_to_string, but it's not possible to hide the directory part. Is there any reason for that ? If there is no objections, I'd like to commit the attached patch. Cheers, Christophe
Index: gnome-vfs-uri.c =================================================================== RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-uri.c,v retrieving revision 1.110 diff -u -r1.110 gnome-vfs-uri.c --- gnome-vfs-uri.c 7 Jan 2003 15:11:20 -0000 1.110 +++ gnome-vfs-uri.c 26 Feb 2003 21:19:19 -0000 @@ -1107,7 +1107,8 @@ } - if (uri->text != NULL) { + if (uri->text != NULL + && (hide_options & GNOME_VFS_URI_HIDE_DIRECTORY) == 0) { g_string_append (string, uri->text); } Index: gnome-vfs-uri.h =================================================================== RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-uri.h,v retrieving revision 1.32 diff -u -r1.32 gnome-vfs-uri.h --- gnome-vfs-uri.h 26 Jun 2002 19:26:44 -0000 1.32 +++ gnome-vfs-uri.h 26 Feb 2003 21:19:19 -0000 @@ -100,6 +100,7 @@ GNOME_VFS_URI_HIDE_HOST_NAME = 1 << 2, GNOME_VFS_URI_HIDE_HOST_PORT = 1 << 3, GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD = 1 << 4, + GNOME_VFS_URI_HIDE_DIRECTORY = 1 << 5, GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER = 1 << 8 } GnomeVFSURIHideOptions;
Attachment:
signature.asc
Description: PGP signature