RE: [Inkscape-devel] abs paths
I found these functions for converting between absolute and relative pathnames:
http://mail.gnome.org/archives/gtk-devel-list/2002-April/msg00142.html
Forgot to mention that I'm not sure that it works under win32, so I commented it there (i.e. win32 uses the old method with relative paths). Someone doing win32 port will need to uncomment and test this function, and probably extend it for things like drive letters etc.
_________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&pgmarket=en-ca&RU=http%3a%...
On Tue, 2003-12-23 at 01:28, bulia byak wrote:
Forgot to mention that I'm not sure that it works under win32, so I commented it there (i.e. win32 uses the old method with relative paths). Someone doing win32 port will need to uncomment and test this function, and probably extend it for things like drive letters etc.
I believe Glib contains code for doing that much (picking out e.g "volume names" aka drive letters), so that shouldn't be too big a deal.
The rules for .. and . on Win32 and Unix are the same, so we should be able to write a generic routine that should work for both, without any #ifdefs. Thankfully MacOS (X) is also a Unix now.
Also, if we introduce g_rel2abs into the Inkscape codebase, please put them in our namespace (Inkscape) without the g_ prefix; we don't want to pollute glib's namespace.
-mental
participants (2)
-
bulia byak
-
MenTaLguY