Commit 13b58925 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

app/config/gimpcoreconfig.c added default values for brush, pattern,

2003-01-23  Sven Neumann  <sven@gimp.org>

	* app/config/gimpcoreconfig.c
	* app/config/gimpguiconfig.c: added default values for brush,
	pattern, palette, gradient and theme.

	* app/config/gimpconfig-dump.c: set a value for module-load-inhibit
	so it gets documented as well.

	* docs/gimprc-1.3.5.in
	* etc/gimprc: regenerated using gimpconfig-dump.
parent 91cc25d3
2003-01-23 Sven Neumann <sven@gimp.org>
* app/config/gimpcoreconfig.c
* app/config/gimpguiconfig.c: added default values for brush,
pattern, palette, gradient and theme.
* app/config/gimpconfig-dump.c: set a value for module-load-inhibit
so it gets documented as well.
* docs/gimprc-1.3.5.in
* etc/gimprc: regenerated using gimpconfig-dump.
2003-01-22 Sven Neumann <sven@gimp.org>
 
* app/config/gimpconfig-dump.c
......
......@@ -92,7 +92,9 @@ main (int argc,
}
}
rc = g_object_new (GIMP_TYPE_RC, NULL);
rc = g_object_new (GIMP_TYPE_RC,
"module-load-inhibit", "foo", /* for completeness */
NULL);
g_print ("# Dump of the GIMP default configuration\n\n");
gimp_config_serialize_properties (rc, 1, 0);
......@@ -134,7 +136,10 @@ dump_system_gimprc (gint fd)
write (fd, str->str, str->len);
rc = g_object_new (GIMP_TYPE_RC, NULL);
rc = g_object_new (GIMP_TYPE_RC,
"module-load-inhibit", "foo", /* for completeness */
NULL);
klass = G_OBJECT_GET_CLASS (rc);
property_specs = g_object_class_list_properties (klass, &n_property_specs);
......
......@@ -46,6 +46,13 @@ static void gimp_core_config_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
#define DEFAULT_BRUSH "Circle (11)"
#define DEFAULT_PATTERN "Pine"
#define DEFAULT_PALETTE "Default"
#define DEFAULT_GRADIENT "FG to BG (RGB)"
#define DEFAULT_COMMENT "Created with The GIMP"
enum
{
PROP_0,
......@@ -172,23 +179,23 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
GIMP_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_BRUSH,
"default-brush", DEFAULT_BRUSH_BLURB,
NULL,
DEFAULT_BRUSH,
0);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PATTERN,
"default-pattern", DEFAULT_PATTERN_BLURB,
NULL,
DEFAULT_PATTERN,
0);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PALETTE,
"default-palette", DEFAULT_PALETTE_BLURB,
NULL,
DEFAULT_PALETTE,
0);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_GRADIENT,
"default-gradient", DEFAULT_GRADIENT_BLURB,
NULL,
DEFAULT_GRADIENT,
0);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_COMMENT,
"default-comment", DEFAULT_COMMENT_BLURB,
"Created with The GIMP",
DEFAULT_COMMENT,
0);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DEFAULT_IMAGE_TYPE,
"default-image-type",
......
......@@ -46,6 +46,9 @@ static void gimp_gui_config_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
#define DEFAULT_THEME "Default"
enum
{
PROP_0,
......@@ -176,7 +179,7 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
GIMP_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_THEME,
"theme", THEME_BLURB,
NULL,
DEFAULT_THEME,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_HELP,
"use-help", USE_HELP_BLURB,
......
......@@ -134,6 +134,30 @@ search.
Sets the gradient search path. This is a colon-separated list of folders to
search.
.TP
(default-brush "Circle (11)")
Specify a default brush. The brush is searched for in the specified brush
path. This is a string value.
.TP
(default-pattern "Pine")
Specify a default pattern. The pattern is searched for in the specified
pattern path. This is a string value.
.TP
(default-palette "Default")
Specify a default palette. The palette is searched for in the specified
palette path. This is a string value.
.TP
(default-gradient "FG to BG (RGB)")
Specify a default gradient. The gradient is searched for in the specified
gradient path. This is a string value.
.TP
(default-comment "Created with The GIMP")
......@@ -463,6 +487,11 @@ defaults to being specified in kilobytes.
Sets the theme search path. This is a colon-separated list of folders to
search.
.TP
(theme "Default")
The name of the theme to use. This is a string value.
.TP
(use-help yes)
......
......@@ -134,6 +134,30 @@ search.
Sets the gradient search path. This is a colon-separated list of folders to
search.
.TP
(default-brush "Circle (11)")
Specify a default brush. The brush is searched for in the specified brush
path. This is a string value.
.TP
(default-pattern "Pine")
Specify a default pattern. The pattern is searched for in the specified
pattern path. This is a string value.
.TP
(default-palette "Default")
Specify a default palette. The palette is searched for in the specified
palette path. This is a string value.
.TP
(default-gradient "FG to BG (RGB)")
Specify a default gradient. The gradient is searched for in the specified
gradient path. This is a string value.
.TP
(default-comment "Created with The GIMP")
......@@ -463,6 +487,11 @@ defaults to being specified in kilobytes.
Sets the theme search path. This is a colon-separated list of folders to
search.
.TP
(theme "Default")
The name of the theme to use. This is a string value.
.TP
(use-help yes)
......
......@@ -98,6 +98,26 @@
#
# (gradient-path "${gimp_dir}/gradients:${gimp_data_dir}/gradients")
# Specify a default brush. The brush is searched for in the specified brush
# path. This is a string value.
#
# (default-brush "Circle (11)")
# Specify a default pattern. The pattern is searched for in the specified
# pattern path. This is a string value.
#
# (default-pattern "Pine")
# Specify a default palette. The palette is searched for in the specified
# palette path. This is a string value.
#
# (default-palette "Default")
# Specify a default gradient. The gradient is searched for in the specified
# gradient path. This is a string value.
#
# (default-gradient "FG to BG (RGB)")
# Sets the default comment. This is a string value.
#
# (default-comment "Created with The GIMP")
......@@ -151,6 +171,10 @@
#
# (pluginrc-path "${gimp_dir}/pluginrc")
# To inhibit loading of a module, add its name here. This is a string value.
#
# (module-load-inhibit "foo")
# Sets the default preview size. Possible values are none, tiny,
# extra-small, small, medium, large, extra-large, huge, enormous and
# gigantic.
......@@ -384,6 +408,10 @@
#
# (theme-path "${gimp_dir}/themes:${gimp_data_dir}/themes")
# The name of the theme to use. This is a string value.
#
# (theme "Default")
# When set to no the F1 help binding will be disabled. Possible values are
# yes and no.
#
......
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