109 |
|
|
110 |
if (g_path_is_absolute (FileName)) |
if (g_path_is_absolute (FileName)) |
111 |
return (strdup (FileName)); |
return (strdup (FileName)); |
112 |
TempFileName = g_strconcat (g_get_current_dir (), |
TempFileName = g_build_filename (g_get_current_dir (), FileName, NULL); |
113 |
PATH_SEP_STRING, FileName, NULL); |
Tab = g_strsplit (TempFileName, G_DIR_SEPARATOR_S, 0); |
|
Tab = g_strsplit (TempFileName, PATH_SEP_STRING, 0); |
|
114 |
g_free (TempFileName); |
g_free (TempFileName); |
115 |
while (Tab[i] != NULL) |
while (Tab[i] != NULL) |
116 |
{ |
{ |
126 |
} |
} |
127 |
else i++; |
else i++; |
128 |
} |
} |
129 |
AbsolutePath = g_strjoinv (PATH_SEP_STRING, Tab); |
AbsolutePath = g_strjoinv (G_DIR_SEPARATOR_S, Tab); |
130 |
g_strfreev (Tab); |
g_strfreev (Tab); |
131 |
return (AbsolutePath); |
return (AbsolutePath); |
132 |
} |
} |
610 |
|
|
611 |
g_free (DIRECTORY); |
g_free (DIRECTORY); |
612 |
dir = g_path_get_dirname (filename); |
dir = g_path_get_dirname (filename); |
613 |
DIRECTORY = g_strconcat (dir, PATH_SEP_STRING, NULL); |
DIRECTORY = g_strconcat (dir, G_DIR_SEPARATOR_S, NULL); |
614 |
g_free (dir); |
g_free (dir); |
615 |
set_string_conf ("General/RecentFiles/Directory", DIRECTORY); |
set_string_conf ("General/RecentFiles/Directory", DIRECTORY); |
616 |
|
|