Merge pull request #44 from dajohi/g_basename

Replace deprecated g_basename with g_path_get_basename.
This commit is contained in:
Alexander Færøy 2014-06-27 14:41:54 +02:00
commit 113f1724d7
5 changed files with 16 additions and 15 deletions

View file

@ -191,7 +191,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;
}