added a GError parameter to file_utils_find_proc().
2006-08-10 Sven Neumann <sven@gimp.org> * app/file/file-utils.[ch]: added a GError parameter to file_utils_find_proc(). * app/actions/file-commands.c * app/dialogs/file-save-dialog.c * app/file/file-open.c * app/widgets/gimpdnd-xds.c * tools/pdbgen/pdb/fileops.pdb: changed accordingly. * app/pdb/fileops_cmds.c: regenerated.
This commit is contained in:
committed by
Sven Neumann
parent
55d716e258
commit
3fbf7436c9
@ -98,14 +98,11 @@ file_open_image (Gimp *gimp,
|
||||
*status = GIMP_PDB_EXECUTION_ERROR;
|
||||
|
||||
if (! file_proc)
|
||||
file_proc = file_utils_find_proc (gimp->plug_in_manager->load_procs, uri);
|
||||
file_proc = file_utils_find_proc (gimp->plug_in_manager->load_procs,
|
||||
uri, error);
|
||||
|
||||
if (! file_proc)
|
||||
{
|
||||
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
||||
_("Unknown file type"));
|
||||
return NULL;
|
||||
}
|
||||
return NULL;
|
||||
|
||||
filename = file_utils_filename_from_uri (uri);
|
||||
|
||||
@ -203,7 +200,8 @@ file_open_thumbnail (Gimp *gimp,
|
||||
*image_width = 0;
|
||||
*image_height = 0;
|
||||
|
||||
file_proc = file_utils_find_proc (gimp->plug_in_manager->load_procs, uri);
|
||||
file_proc = file_utils_find_proc (gimp->plug_in_manager->load_procs,
|
||||
uri, NULL);
|
||||
|
||||
if (! file_proc || ! file_proc->thumb_loader)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user