app: port file_open_from_command_line() to GFile

Use g_file_new_for_commandline_arg() and remove
file_utils_any_to_file().
This commit is contained in:
Michael Natterer
2014-07-07 01:02:54 +02:00
parent 0f8d84d5e9
commit a6aa35df57
6 changed files with 52 additions and 95 deletions

View File

@ -277,9 +277,15 @@ app_run (const gchar *full_prog_name,
for (i = 0; filenames[i] != NULL; i++)
{
if (run_loop)
file_open_from_command_line (gimp, filenames[i], as_new,
initial_screen,
initial_monitor);
{
GFile *file = g_file_new_for_commandline_arg (filenames[i]);
file_open_from_command_line (gimp, file, as_new,
initial_screen,
initial_monitor);
g_object_unref (file);
}
}
}