Commit 8c692331 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

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.
parent de916343
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.
......
......@@ -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);
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment