use gimp_message() for error handling.

* app/file/file-open.c (file_open_from_command_line): use
	gimp_message() for error handling.


svn path=/trunk/; revision=22797
This commit is contained in:
Sven Neumann 2007-06-18 19:32:00 +00:00
parent 493c9abde1
commit 94c5cd064d
1 changed files with 4 additions and 2 deletions

View File

@ -504,9 +504,11 @@ file_open_from_command_line (Gimp *gimp,
}
else if (status != GIMP_PDB_CANCEL)
{
gchar *filename = file_utils_uri_to_utf8_filename (uri);
gchar *filename = file_utils_uri_display_name (uri);
g_message (_("Opening '%s' failed: %s"), filename, error->message);
gimp_message (gimp, NULL, GIMP_MESSAGE_ERROR,
_("Opening '%s' failed: %s"),
filename, error->message);
g_clear_error (&error);
g_free (filename);