mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
declare default_value as const and allocate a copy.
2005-04-06 Sven Neumann <sven@gimp.org> * libgimpconfig/gimpconfig-path.[ch] (gimp_param_spec_config_path): declare default_value as const and allocate a copy. * app/config/gimpbaseconfig.[ch]: gives access to the default values for temp and swap path. * app/base/base.c (base_init): create the temp directory if it doesn't exist (bug #172682). * plug-ins/uri/uri-backend-gnomevfs.c: fixed path in error message.
This commit is contained in:
parent
24cb9a5d7a
commit
e79099db0d
7 changed files with 48 additions and 7 deletions
|
@ -138,7 +138,7 @@ gimp_param_spec_config_path (const gchar *name,
|
|||
const gchar *nick,
|
||||
const gchar *blurb,
|
||||
GimpConfigPathType type,
|
||||
gchar *default_value,
|
||||
const gchar *default_value,
|
||||
GParamFlags flags)
|
||||
{
|
||||
GParamSpecString *pspec;
|
||||
|
@ -146,7 +146,7 @@ gimp_param_spec_config_path (const gchar *name,
|
|||
pspec = g_param_spec_internal (GIMP_TYPE_PARAM_CONFIG_PATH,
|
||||
name, nick, blurb, flags);
|
||||
|
||||
pspec->default_value = default_value;
|
||||
pspec->default_value = g_strdup (default_value);
|
||||
|
||||
GIMP_PARAM_SPEC_CONFIG_PATH (pspec)->type = type;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue