I found these functions for converting between absolute and relative pathnames:
http://mail.gnome.org/archives/gtk-devel-list/2002-April/msg00142.html
They were apparently proposed for glib but not accepted. I copied g_rel2abs() into document.cpp and used it for calculating the absolute pathname. It seems to work well for paths with any number of "." or "..", and the list of recent files now contains absolute pathnames (this fixes https://sourceforge.net/tracker/index.php?func=detail&aid=860202&gro...).
Please test. If any other file will need this function we'll probably need to separate it into a file of its own.
_________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
participants (1)
-
bulia byak