need to expand the temp_path before using it.

2002-12-31  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/fileops.pdb (gimp_temp_name): need to expand the
	temp_path before using it.

	* app/pdb/fileops_cmds.c: regenerated.
This commit is contained in:
Sven Neumann 2002-12-30 23:15:44 +00:00 committed by Sven Neumann
parent de91634349
commit 8c69233181
3 changed files with 24 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2002-12-31 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/fileops.pdb (gimp_temp_name): need to expand the
temp_path before using it.
* app/pdb/fileops_cmds.c: regenerated.
2002-12-30 Sven Neumann <sven@gimp.org>
* Made 1.3.11 release.

View File

@ -42,6 +42,7 @@
#include "procedural_db.h"
#include "config/gimpbaseconfig.h"
#include "config/gimpconfig-path.h"
#include "core/gimp.h"
#include "core/gimpimage.h"
#include "core/gimpimagefile.h"
@ -416,6 +417,7 @@ temp_name_invoker (Gimp *gimp,
static gint id = 0;
static gint pid;
gchar *filename;
gchar *path;
extension = (gchar *) args[0].value.pdb_pointer;
if (extension == NULL)
@ -429,9 +431,12 @@ temp_name_invoker (Gimp *gimp,
filename = g_strdup_printf ("gimp_temp_%d%d.%s",
pid, id++, extension);
name = g_build_filename (GIMP_BASE_CONFIG (gimp->config)->temp_path,
filename, NULL);
path = gimp_config_path_expand (GIMP_BASE_CONFIG (gimp->config)->temp_path,
TRUE, NULL);
name = g_build_filename (path, filename, NULL);
g_free (path);
g_free (filename);
}

View File

@ -296,8 +296,11 @@ HELP
);
%invoke = (
headers => [ qw(<process.h> "config/gimpbaseconfig.h") ],
vars => [ 'static gint id = 0', 'static gint pid', 'gchar *filename' ],
headers => [ qw(<process.h>
"config/gimpbaseconfig.h"
"config/gimpconfig-path.h") ],
vars => [ 'static gint id = 0', 'static gint pid',
'gchar *filename', 'gchar *path' ],
code => <<'CODE'
{
if (id == 0)
@ -306,9 +309,12 @@ HELP
filename = g_strdup_printf ("gimp_temp_%d%d.%s",
pid, id++, extension);
name = g_build_filename (GIMP_BASE_CONFIG (gimp->config)->temp_path,
filename, NULL);
path = gimp_config_path_expand (GIMP_BASE_CONFIG (gimp->config)->temp_path,
TRUE, NULL);
name = g_build_filename (path, filename, NULL);
g_free (path);
g_free (filename);
}
CODE