mirror of https://github.com/GNOME/gimp.git
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:
parent
493c9abde1
commit
94c5cd064d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue