Replace deprecated g_basename with g_path_get_basename.

This commit is contained in:
David Hill 2014-06-16 11:45:26 -04:00
commit 9d6cd87b0f
5 changed files with 16 additions and 15 deletions

View file

@ -190,7 +190,7 @@ static char *script_file_get_name(const char *path)
{
char *name;
name = g_strdup(g_basename(path));
name = g_path_get_basename(path);
script_fix_name(name);
return name;
}