mirror of https://github.com/GNOME/gimp.git
use the basename as Title, not the full filename. Fixes bug #149669.
2004-08-09 Sven Neumann <sven@gimp.org> * plug-ins/common/postscript.c (save_ps_header): use the basename as Title, not the full filename. Fixes bug #149669.
This commit is contained in:
parent
04942cbc60
commit
608e16e5d8
|
@ -1,3 +1,8 @@
|
|||
2004-08-09 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/postscript.c (save_ps_header): use the basename
|
||||
as Title, not the full filename. Fixes bug #149669.
|
||||
|
||||
2004-08-08 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/siod/sliba.c (array_prin1): when printing a
|
||||
|
|
|
@ -1923,16 +1923,19 @@ load_ps (const gchar *filename,
|
|||
static void save_ps_header (FILE *ofp,
|
||||
const gchar *filename)
|
||||
{
|
||||
time_t cutime = time (NULL);
|
||||
gchar *basename = g_path_get_basename (filename);
|
||||
time_t cutime = time (NULL);
|
||||
|
||||
fprintf (ofp, "%%!PS-Adobe-3.0%s\n", psvals.eps ? " EPSF-3.0" : "");
|
||||
fprintf (ofp, "%%%%Creator: GIMP PostScript file plugin V %4.2f \
|
||||
by Peter Kirchgessner\n", VERSIO);
|
||||
fprintf (ofp, "%%%%Title: %s\n", filename);
|
||||
fprintf (ofp, "%%%%Title: %s\n", basename);
|
||||
fprintf (ofp, "%%%%CreationDate: %s", ctime (&cutime));
|
||||
fprintf (ofp, "%%%%DocumentData: Clean7Bit\n");
|
||||
if (psvals.eps || (psvals.level > 1)) fprintf (ofp,"%%%%LanguageLevel: 2\n");
|
||||
fprintf (ofp, "%%%%Pages: 1\n");
|
||||
|
||||
g_free (basename);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue