app: Put "[<filename>] (imported)" in window title for imported files

Put "[<filename>] (imported)" in window title for imported files
instead of "Untitled (imported from <filename>)".
This commit is contained in:
Martin Nordholts 2009-07-02 20:46:52 +02:00
parent d9136aec3f
commit ed9c12d1e7
1 changed files with 5 additions and 3 deletions

View File

@ -445,15 +445,17 @@ gimp_display_shell_format_filename (gchar *buf,
GIMP_FILE_IMPORT_SOURCE_URI_KEY);
if (source)
{
gchar *source_basename = file_utils_uri_display_basename (source);
gchar *source_no_ext = file_utils_uri_with_new_ext (source, NULL);
gchar *source_basename = file_utils_uri_display_basename (source_no_ext);
gint incr;
incr = print (buf, len, start,
/* image name and source as shown in the title of
/* image import source as shown in the title of
the image window */
_("%s (imported from %s)"), filename, source_basename);
_("[%s] (imported)"), source_basename);
g_free (source_basename);
g_free (source_no_ext);
return incr;
}