2005-01-26 03:11:26 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2001-12-08 11:35:38 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* ParamSpecs for config objects
|
2019-09-14 23:34:06 +08:00
|
|
|
* Copyright (C) 2001 Sven Neumann <sven@gimp.org>
|
|
|
|
* 2001-2019 Michael Natterer <mitch@gimp.org>
|
2001-12-08 11:35:38 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2005-01-26 03:11:26 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2001-12-08 11:35:38 +08:00
|
|
|
*
|
2005-01-26 03:11:26 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2001-12-08 11:35:38 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-01-26 03:11:26 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
2001-12-08 11:35:38 +08:00
|
|
|
*
|
2005-01-26 03:11:26 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
2018-07-12 05:27:07 +08:00
|
|
|
* <https://www.gnu.org/licenses/>.
|
2001-12-08 11:35:38 +08:00
|
|
|
*/
|
|
|
|
|
2011-04-28 20:30:41 +08:00
|
|
|
#if !defined (__GIMP_CONFIG_H_INSIDE__) && !defined (GIMP_CONFIG_COMPILATION)
|
|
|
|
#error "Only <libgimpconfig/gimpconfig.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2001-12-08 11:35:38 +08:00
|
|
|
#ifndef __GIMP_CONFIG_PARAMS_H__
|
|
|
|
#define __GIMP_CONFIG_PARAMS_H__
|
|
|
|
|
2005-06-23 04:37:11 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
2001-12-08 11:35:38 +08:00
|
|
|
|
2010-06-30 02:57:52 +08:00
|
|
|
/**
|
2019-09-17 02:24:06 +08:00
|
|
|
* GIMP_CONFIG_PARAM_SERIALIZE:
|
2010-06-30 02:57:52 +08:00
|
|
|
*
|
2019-09-17 02:24:06 +08:00
|
|
|
* A property that can and should be serialized and deserialized.
|
2010-06-30 02:57:52 +08:00
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_SERIALIZE (1 << (0 + GIMP_PARAM_FLAG_SHIFT))
|
2019-09-17 02:24:06 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_AGGREGATE:
|
|
|
|
*
|
|
|
|
* The object property is to be treated as part of the parent object.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_AGGREGATE (1 << (1 + GIMP_PARAM_FLAG_SHIFT))
|
2019-09-17 02:24:06 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_RESTART:
|
|
|
|
*
|
|
|
|
* Changes to this property take effect only after a restart.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_RESTART (1 << (2 + GIMP_PARAM_FLAG_SHIFT))
|
2019-09-17 02:24:06 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_CONFIRM:
|
|
|
|
*
|
|
|
|
* Changes to this property should be confirmed by the user before
|
|
|
|
* being applied.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_CONFIRM (1 << (3 + GIMP_PARAM_FLAG_SHIFT))
|
2019-09-17 02:24:06 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_DEFAULTS:
|
|
|
|
*
|
|
|
|
* Don't serialize this property if it has the default value.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_DEFAULTS (1 << (4 + GIMP_PARAM_FLAG_SHIFT))
|
2002-05-22 01:33:04 +08:00
|
|
|
|
2019-09-17 02:24:06 +08:00
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_IGNORE:
|
|
|
|
*
|
|
|
|
* This property exists for obscure reasons or is needed for backward
|
|
|
|
* compatibility. Ignore the value read and don't serialize it.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_IGNORE (1 << (5 + GIMP_PARAM_FLAG_SHIFT))
|
2002-05-22 01:33:04 +08:00
|
|
|
|
2020-04-08 05:10:42 +08:00
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_DONT_COMPARE:
|
|
|
|
*
|
|
|
|
* Ignore this property when comparing objects.
|
|
|
|
**/
|
app, libgimpbase, libgimpconfig: make our custom GParamFlags definitions…
… more robust.
GIMP_PARAM_NO_VALIDATE and GIMP_CONFIG_PARAM_DONT_COMPARE were the same
value, most likely because when GIMP_CONFIG_PARAM_DONT_COMPARE got added
(commit c5c807d1913), the comment to keep in sync
libgimpbase/gimpparamspecs.h and libgimpconfig/gimpconfig-params.h was
missed.
Instead, since libgimpconfig can include libgimpbase, do the other way
around: first non-GLib param flags are in libgimpbase, then we add a
GIMP_PARAM_FLAG_SHIFT, then we increment from it in libgimpconfig, and
finally we increment from GIMP_CONFIG_PARAM_FLAG_SHIFT if ever we add
more flags in app/ (right now GIMP_SYMMETRY_PARAM_GUI is apparently the
only one, but this may change).
2024-08-31 06:45:15 +08:00
|
|
|
#define GIMP_CONFIG_PARAM_DONT_COMPARE (1 << (6 + GIMP_PARAM_FLAG_SHIFT))
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_FLAG_SHIFT:
|
|
|
|
*
|
|
|
|
* Minimum shift count to be used for core application defined
|
|
|
|
* [flags@GObject.ParamFlags].
|
|
|
|
*/
|
|
|
|
#define GIMP_CONFIG_PARAM_FLAG_SHIFT (7 + GIMP_PARAM_FLAG_SHIFT)
|
2020-04-08 05:10:42 +08:00
|
|
|
|
2019-09-17 02:24:06 +08:00
|
|
|
/**
|
|
|
|
* GIMP_CONFIG_PARAM_FLAGS:
|
|
|
|
*
|
|
|
|
* The default flags that should be used for serializable #GimpConfig
|
|
|
|
* properties.
|
|
|
|
**/
|
|
|
|
#define GIMP_CONFIG_PARAM_FLAGS (G_PARAM_READWRITE | \
|
|
|
|
G_PARAM_CONSTRUCT | \
|
|
|
|
G_PARAM_STATIC_STRINGS | \
|
|
|
|
GIMP_CONFIG_PARAM_SERIALIZE)
|
2002-05-22 01:33:04 +08:00
|
|
|
|
2001-12-17 00:33:18 +08:00
|
|
|
|
2001-12-11 02:31:35 +08:00
|
|
|
/* some convenience macros to install object properties */
|
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_BOOLEAN(class, id, name, nick, blurb, default, flags) \
|
2001-12-11 02:31:35 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_boolean (name, nick, blurb,\
|
2001-12-11 23:58:07 +08:00
|
|
|
default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_INT(class, id, name, nick, blurb, min, max, default, flags) \
|
2002-05-22 01:33:04 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_int (name, nick, blurb,\
|
|
|
|
min, max, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_UINT(class, id, name, nick, blurb, min, max, default, flags) \
|
2001-12-17 00:33:18 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_uint (name, nick, blurb,\
|
2001-12-17 00:33:18 +08:00
|
|
|
min, max, default,\
|
2017-07-23 21:17:12 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
|
|
|
|
|
|
|
#define GIMP_CONFIG_PROP_INT64(class, id, name, nick, blurb, min, max, default, flags) \
|
|
|
|
g_object_class_install_property (class, id,\
|
|
|
|
g_param_spec_int64 (name, nick, blurb,\
|
|
|
|
min, max, default,\
|
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
|
|
|
|
|
|
|
#define GIMP_CONFIG_PROP_UINT64(class, id, name, nick, blurb, min, max, default, flags) \
|
|
|
|
g_object_class_install_property (class, id,\
|
|
|
|
g_param_spec_uint64 (name, nick, blurb,\
|
|
|
|
min, max, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_UNIT(class, id, name, nick, blurb, pixels, percent, default, flags) \
|
2003-10-24 14:22:53 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
gimp_param_spec_unit (name, nick, blurb,\
|
|
|
|
pixels, percent, default,\
|
2003-10-24 14:22:53 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_MEMSIZE(class, id, name, nick, blurb, min, max, default, flags) \
|
2001-12-11 02:31:35 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
gimp_param_spec_memsize (name, nick, blurb,\
|
|
|
|
min, max, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_DOUBLE(class, id, name, nick, blurb, min, max, default, flags) \
|
2001-12-11 02:31:35 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_double (name, nick, blurb,\
|
2001-12-11 23:58:07 +08:00
|
|
|
min, max, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_RESOLUTION(class, id, name, nick, blurb, default, flags) \
|
2003-07-08 00:22:45 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_double (name, nick, blurb,\
|
|
|
|
GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION, \
|
2003-07-08 00:22:45 +08:00
|
|
|
default,\
|
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_ENUM(class, id, name, nick, blurb, enum_type, default, flags) \
|
2001-12-11 02:31:35 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_enum (name, nick, blurb,\
|
|
|
|
enum_type, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_STRING(class, id, name, nick, blurb, default, flags) \
|
2001-12-11 02:31:35 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_string (name, nick, blurb,\
|
|
|
|
default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_PATH(class, id, name, nick, blurb, path_type, default, flags) \
|
2001-12-11 23:58:07 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
gimp_param_spec_config_path (name, nick, blurb,\
|
|
|
|
path_type, default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2005-03-03 19:56:20 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_MATRIX2(class, id, name, nick, blurb, default, flags) \
|
2001-12-17 00:33:18 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
gimp_param_spec_matrix2 (name, nick, blurb,\
|
|
|
|
default,\
|
2002-11-21 03:09:40 +08:00
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2001-12-11 02:31:35 +08:00
|
|
|
|
2023-08-02 04:32:10 +08:00
|
|
|
#define GIMP_CONFIG_PROP_FONT(class, id, name, nick, blurb, flags) \
|
|
|
|
g_object_class_install_property (class, id,\
|
|
|
|
g_param_spec_object (name, nick, blurb,\
|
|
|
|
GIMP_TYPE_FONT,\
|
|
|
|
flags | GIMP_CONFIG_PARAM_FLAGS))
|
2001-12-11 02:31:35 +08:00
|
|
|
|
2006-09-24 20:20:22 +08:00
|
|
|
/* object, boxed and pointer properties are _not_ G_PARAM_CONSTRUCT */
|
2003-03-01 01:01:13 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_OBJECT(class, id, name, nick, blurb, object_type, flags) \
|
2003-03-01 01:01:13 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_object (name, nick, blurb,\
|
2003-03-01 01:01:13 +08:00
|
|
|
object_type,\
|
|
|
|
flags |\
|
2005-02-05 22:52:58 +08:00
|
|
|
G_PARAM_READWRITE |\
|
2023-11-15 03:04:14 +08:00
|
|
|
GIMP_CONFIG_PARAM_SERIALIZE))
|
|
|
|
|
2024-04-20 05:02:29 +08:00
|
|
|
#define GIMP_CONFIG_PROP_COLOR(class, id, name, nick, blurb, has_alpha, default, flags) \
|
2023-11-15 03:04:14 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2024-04-20 05:02:29 +08:00
|
|
|
gimp_param_spec_color (name, nick, blurb,\
|
|
|
|
has_alpha, default,\
|
2023-11-15 03:04:14 +08:00
|
|
|
flags |\
|
|
|
|
G_PARAM_READWRITE |\
|
2005-02-05 22:52:58 +08:00
|
|
|
GIMP_CONFIG_PARAM_SERIALIZE))
|
2003-03-01 01:01:13 +08:00
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_BOXED(class, id, name, nick, blurb, boxed_type, flags) \
|
2006-09-24 20:20:22 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_boxed (name, nick, blurb,\
|
2006-09-24 20:20:22 +08:00
|
|
|
boxed_type,\
|
|
|
|
flags |\
|
|
|
|
G_PARAM_READWRITE |\
|
|
|
|
GIMP_CONFIG_PARAM_SERIALIZE))
|
|
|
|
|
2016-02-10 06:21:22 +08:00
|
|
|
#define GIMP_CONFIG_PROP_POINTER(class, id, name, nick, blurb, flags) \
|
2004-06-17 02:14:44 +08:00
|
|
|
g_object_class_install_property (class, id,\
|
2016-02-10 06:21:22 +08:00
|
|
|
g_param_spec_pointer (name, nick, blurb,\
|
2004-06-17 02:14:44 +08:00
|
|
|
flags |\
|
2005-02-05 22:52:58 +08:00
|
|
|
G_PARAM_READWRITE |\
|
|
|
|
GIMP_CONFIG_PARAM_SERIALIZE))
|
2004-06-17 02:14:44 +08:00
|
|
|
|
2003-03-01 01:01:13 +08:00
|
|
|
|
2019-09-14 23:34:06 +08:00
|
|
|
/* create a copy of a GParamSpec */
|
|
|
|
|
|
|
|
GParamSpec * gimp_config_param_spec_duplicate (GParamSpec *pspec);
|
|
|
|
|
|
|
|
|
2005-06-23 04:37:11 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
2001-12-08 11:35:38 +08:00
|
|
|
#endif /* __GIMP_CONFIG_PARAMS_H__ */
|