libgimpbase, app: add variants of gimp_$foo_directory() which return GFiles

gimp_directory_file(), gimp_data_directory_file() etc. The new
functions take a variable list of path elements to the file,
the list has to be NULL-terminated. Remove the newly added
gimp_personal_rc_gfile(). Start using the new functions in app/.
This commit is contained in:
Michael Natterer
2014-07-28 02:04:01 +02:00
parent b328bd3087
commit b03d69dd40
19 changed files with 239 additions and 106 deletions

View File

@ -266,7 +266,7 @@ gimp_tools_restore (Gimp *gimp)
gimp_list = gimp_list_new (GIMP_TYPE_TOOL_INFO, FALSE);
file = gimp_personal_rc_gfile ("toolrc");
file = gimp_directory_file ("toolrc", NULL);
if (gimp->be_verbose)
g_print ("Parsing '%s'\n", gimp_file_get_utf8_name (file));
@ -411,7 +411,7 @@ gimp_tools_save (Gimp *gimp,
}
}
file = gimp_personal_rc_gfile ("toolrc");
file = gimp_directory_file ("toolrc", NULL);
if (gimp->be_verbose)
g_print ("Writing '%s'\n", gimp_file_get_utf8_name (file));