app: port everything to GIMP_CONFIG_PROP_FOO()

This commit is contained in:
Michael Natterer 2016-04-17 00:11:06 +01:00
parent 4b1a27f011
commit 65d3ce7cb8
6 changed files with 1303 additions and 873 deletions

View File

@ -155,77 +155,107 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
object_class->set_property = gimp_core_config_set_property; object_class->set_property = gimp_core_config_set_property;
object_class->get_property = gimp_core_config_get_property; object_class->get_property = gimp_core_config_get_property;
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE, GIMP_CONFIG_PROP_STRING (object_class, PROP_LANGUAGE,
"language", LANGUAGE_BLURB, "language",
NULL, /* take from environment */ "Language",
GIMP_PARAM_STATIC_STRINGS | LANGUAGE_BLURB,
GIMP_CONFIG_PARAM_RESTART); NULL, /* take from environment */
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION_TYPE, GIMP_PARAM_STATIC_STRINGS |
"interpolation-type", GIMP_CONFIG_PARAM_RESTART);
INTERPOLATION_TYPE_BLURB,
GIMP_TYPE_INTERPOLATION_TYPE, GIMP_CONFIG_PROP_ENUM (object_class, PROP_INTERPOLATION_TYPE,
GIMP_INTERPOLATION_CUBIC, "interpolation-type",
GIMP_PARAM_STATIC_STRINGS); "Interpolation",
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_DEFAULT_THRESHOLD, INTERPOLATION_TYPE_BLURB,
"default-threshold", DEFAULT_THRESHOLD_BLURB, GIMP_TYPE_INTERPOLATION_TYPE,
0, 255, 15, GIMP_INTERPOLATION_CUBIC,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_DEFAULT_THRESHOLD,
"default-threshold",
"Default threshold",
DEFAULT_THRESHOLD_BLURB,
0, 255, 15,
GIMP_PARAM_STATIC_STRINGS);
path = gimp_config_build_plug_in_path ("plug-ins"); path = gimp_config_build_plug_in_path ("plug-ins");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PLUG_IN_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_PLUG_IN_PATH,
"plug-in-path", PLUG_IN_PATH_BLURB, "plug-in-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Plug-In path",
GIMP_PARAM_STATIC_STRINGS | PLUG_IN_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_plug_in_path ("modules"); path = gimp_config_build_plug_in_path ("modules");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_MODULE_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_MODULE_PATH,
"module-path", MODULE_PATH_BLURB, "module-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Module path",
GIMP_PARAM_STATIC_STRINGS | MODULE_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_plug_in_path ("interpreters"); path = gimp_config_build_plug_in_path ("interpreters");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_INTERPRETER_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_INTERPRETER_PATH,
"interpreter-path", INTERPRETER_PATH_BLURB, "interpreter-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Interpreter path",
GIMP_PARAM_STATIC_STRINGS | INTERPRETER_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_plug_in_path ("environ"); path = gimp_config_build_plug_in_path ("environ");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_ENVIRON_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_ENVIRON_PATH,
"environ-path", ENVIRON_PATH_BLURB, "environ-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Environment path",
GIMP_PARAM_STATIC_STRINGS | ENVIRON_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("brushes"); path = gimp_config_build_data_path ("brushes");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_BRUSH_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_BRUSH_PATH,
"brush-path", BRUSH_PATH_BLURB, "brush-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Brush path",
GIMP_PARAM_STATIC_STRINGS | BRUSH_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_writable_path ("brushes"); path = gimp_config_build_writable_path ("brushes");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_BRUSH_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_BRUSH_PATH_WRITABLE,
"brush-path-writable", "brush-path-writable",
BRUSH_PATH_WRITABLE_BLURB, "Writable brush path",
GIMP_CONFIG_PATH_DIR_LIST, path, BRUSH_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("dynamics"); path = gimp_config_build_data_path ("dynamics");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_DYNAMICS_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_DYNAMICS_PATH,
"dynamics-path", DYNAMICS_PATH_BLURB, "dynamics-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Dynamics path",
GIMP_PARAM_STATIC_STRINGS | DYNAMICS_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
path = gimp_config_build_writable_path ("dynamics");
GIMP_CONFIG_PROP_PATH (object_class, PROP_DYNAMICS_PATH_WRITABLE,
"dynamics-path-writable",
"Writable dynamics path",
DYNAMICS_PATH_WRITABLE_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
#if 0 #if 0
@ -244,11 +274,13 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
#endif #endif
"~/.mypaint/brushes", "~/.mypaint/brushes",
NULL); NULL);
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_MYPAINT_BRUSH_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_MYPAINT_BRUSH_PATH,
"mypaint-brush-path", MYPAINT_BRUSH_PATH_BLURB, "mypaint-brush-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "MyPaint brush path",
GIMP_PARAM_STATIC_STRINGS | MYPAINT_BRUSH_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
#if 0 #if 0
g_free (dir1); g_free (dir1);
@ -261,180 +293,237 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
#endif #endif
"~/.mypaint/brushes", "~/.mypaint/brushes",
NULL); NULL);
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_MYPAINT_BRUSH_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_MYPAINT_BRUSH_PATH_WRITABLE,
"mypaint-brush-path-writable", "mypaint-brush-path-writable",
MYPAINT_BRUSH_PATH_WRITABLE_BLURB, "Writable MyPaint brush path",
GIMP_CONFIG_PATH_DIR_LIST, path, MYPAINT_BRUSH_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
#if 0 #if 0
g_free (dir2); g_free (dir2);
#endif #endif
path = gimp_config_build_writable_path ("dynamics");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_DYNAMICS_PATH_WRITABLE,
"dynamics-path-writable",
DYNAMICS_PATH_WRITABLE_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
path = gimp_config_build_data_path ("patterns"); path = gimp_config_build_data_path ("patterns");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PATTERN_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_PATTERN_PATH,
"pattern-path", PATTERN_PATH_BLURB, "pattern-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Pattern path",
GIMP_PARAM_STATIC_STRINGS | PATTERN_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_writable_path ("patterns"); path = gimp_config_build_writable_path ("patterns");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PATTERN_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_PATTERN_PATH_WRITABLE,
"pattern-path-writable", "pattern-path-writable",
PATTERN_PATH_WRITABLE_BLURB, "Writable pattern path",
GIMP_CONFIG_PATH_DIR_LIST, path, PATTERN_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("palettes"); path = gimp_config_build_data_path ("palettes");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PALETTE_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_PALETTE_PATH,
"palette-path", PALETTE_PATH_BLURB, "palette-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Palette path",
GIMP_PARAM_STATIC_STRINGS | PALETTE_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_writable_path ("palettes"); path = gimp_config_build_writable_path ("palettes");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PALETTE_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_PALETTE_PATH_WRITABLE,
"palette-path-writable", "palette-path-writable",
PALETTE_PATH_WRITABLE_BLURB, "Writable palette path",
GIMP_CONFIG_PATH_DIR_LIST, path, PALETTE_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("gradients"); path = gimp_config_build_data_path ("gradients");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_GRADIENT_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_GRADIENT_PATH,
"gradient-path", GRADIENT_PATH_BLURB, "gradient-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Gradient path",
GIMP_PARAM_STATIC_STRINGS | GRADIENT_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_writable_path ("gradients"); path = gimp_config_build_writable_path ("gradients");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_GRADIENT_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_GRADIENT_PATH_WRITABLE,
"gradient-path-writable", "gradient-path-writable",
GRADIENT_PATH_WRITABLE_BLURB, "Writable gradient path",
GIMP_CONFIG_PATH_DIR_LIST, path, GRADIENT_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("tool-presets"); path = gimp_config_build_data_path ("tool-presets");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_TOOL_PRESET_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_TOOL_PRESET_PATH,
"tool-preset-path", TOOL_PRESET_PATH_BLURB, "tool-preset-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Tool preset path",
GIMP_PARAM_STATIC_STRINGS | TOOL_PRESET_PATH_BLURB,
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_writable_path ("tool-presets"); path = gimp_config_build_writable_path ("tool-presets");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_TOOL_PRESET_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_TOOL_PRESET_PATH_WRITABLE,
"tool-preset-path-writable", "tool-preset-path-writable",
TOOL_PRESET_PATH_WRITABLE_BLURB, "Writable tool preset path",
GIMP_CONFIG_PATH_DIR_LIST, path, TOOL_PRESET_PATH_WRITABLE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("fonts"); path = gimp_config_build_data_path ("fonts");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_FONT_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_FONT_PATH,
"font-path", FONT_PATH_BLURB, "font-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "Font path",
GIMP_PARAM_STATIC_STRINGS | FONT_PATH_BLURB,
GIMP_CONFIG_PARAM_CONFIRM); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_CONFIRM);
g_free (path); g_free (path);
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_FONT_PATH_WRITABLE, GIMP_CONFIG_PROP_PATH (object_class, PROP_FONT_PATH_WRITABLE,
"font-path-writable", NULL, "font-path-writable",
GIMP_CONFIG_PATH_DIR_LIST, NULL, "Writable font path",
GIMP_PARAM_STATIC_STRINGS | NULL,
GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_PATH_DIR_LIST, NULL,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_BRUSH, GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_BRUSH,
"default-brush", DEFAULT_BRUSH_BLURB, "default-brush",
DEFAULT_BRUSH, "Default brush",
GIMP_PARAM_STATIC_STRINGS); DEFAULT_BRUSH_BLURB,
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_DYNAMICS, DEFAULT_BRUSH,
"default-dynamics", DEFAULT_DYNAMICS_BLURB, GIMP_PARAM_STATIC_STRINGS);
DEFAULT_DYNAMICS,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_MYPAINT_BRUSH,
"default-mypaint-brush", DEFAULT_MYPAINT_BRUSH_BLURB,
DEFAULT_MYPAINT_BRUSH,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PATTERN,
"default-pattern", DEFAULT_PATTERN_BLURB,
DEFAULT_PATTERN,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PALETTE,
"default-palette", DEFAULT_PALETTE_BLURB,
DEFAULT_PALETTE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_GRADIENT,
"default-gradient", DEFAULT_GRADIENT_BLURB,
DEFAULT_GRADIENT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_TOOL_PRESET,
"default-tool-preset", DEFAULT_TOOL_PRESET_BLURB,
DEFAULT_TOOL_PRESET,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_FONT,
"default-font", DEFAULT_FONT_BLURB,
DEFAULT_FONT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_BRUSH, GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_DYNAMICS,
"global-brush", GLOBAL_BRUSH_BLURB, "default-dynamics",
TRUE, "Default dynamics",
GIMP_PARAM_STATIC_STRINGS); DEFAULT_DYNAMICS_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_DYNAMICS, DEFAULT_DYNAMICS,
"global-dynamics", GLOBAL_DYNAMICS_BLURB, GIMP_PARAM_STATIC_STRINGS);
TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_MYPAINT_BRUSH,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_PATTERN, "default-mypaint-brush",
"global-pattern", GLOBAL_PATTERN_BLURB, "Default MyPaint brush",
TRUE, DEFAULT_MYPAINT_BRUSH_BLURB,
GIMP_PARAM_STATIC_STRINGS); DEFAULT_MYPAINT_BRUSH,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_PALETTE, GIMP_PARAM_STATIC_STRINGS);
"global-palette", GLOBAL_PALETTE_BLURB,
TRUE, GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_PATTERN,
GIMP_PARAM_STATIC_STRINGS); "default-pattern",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_GRADIENT, "Default pattern",
"global-gradient", GLOBAL_GRADIENT_BLURB, DEFAULT_PATTERN_BLURB,
TRUE, DEFAULT_PATTERN,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_FONT,
"global-font", GLOBAL_FONT_BLURB, GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_PALETTE,
TRUE, "default-palette",
GIMP_PARAM_STATIC_STRINGS); "Default palette",
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_IMAGE, DEFAULT_PALETTE_BLURB,
"default-image", DEFAULT_IMAGE_BLURB, DEFAULT_PALETTE,
GIMP_TYPE_TEMPLATE, GIMP_PARAM_STATIC_STRINGS);
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE); GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_GRADIENT,
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_GRID, "default-gradient",
"default-grid", DEFAULT_GRID_BLURB, "Default gradient",
GIMP_TYPE_GRID, DEFAULT_GRADIENT_BLURB,
GIMP_PARAM_STATIC_STRINGS | DEFAULT_GRADIENT,
GIMP_CONFIG_PARAM_AGGREGATE); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_UNDO_LEVELS,
"undo-levels", UNDO_LEVELS_BLURB, GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_TOOL_PRESET,
0, 1 << 20, 5, "default-tool-preset",
GIMP_PARAM_STATIC_STRINGS | "Default tool preset",
GIMP_CONFIG_PARAM_CONFIRM); DEFAULT_TOOL_PRESET_BLURB,
DEFAULT_TOOL_PRESET,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_STRING (object_class, PROP_DEFAULT_FONT,
"default-font",
"Default font",
DEFAULT_FONT_BLURB,
DEFAULT_FONT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_BRUSH,
"global-brush",
"Global brush",
GLOBAL_BRUSH_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_DYNAMICS,
"global-dynamics",
"Global dynamics",
GLOBAL_DYNAMICS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_PATTERN,
"global-pattern",
"Global pattern",
GLOBAL_PATTERN_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_PALETTE,
"global-palette",
"Global palette",
GLOBAL_PALETTE_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_GRADIENT,
"global-gradient",
"Global gradient",
GLOBAL_GRADIENT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_GLOBAL_FONT,
"global-font",
"Global font",
GLOBAL_FONT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_OBJECT (object_class, PROP_DEFAULT_IMAGE,
"default-image",
"Default image",
DEFAULT_IMAGE_BLURB,
GIMP_TYPE_TEMPLATE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_PROP_OBJECT (object_class, PROP_DEFAULT_GRID,
"default-grid",
"Default grid",
DEFAULT_GRID_BLURB,
GIMP_TYPE_GRID,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_PROP_INT (object_class, PROP_UNDO_LEVELS,
"undo-levels",
"Undo levels",
UNDO_LEVELS_BLURB,
0, 1 << 20, 5,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_CONFIRM);
undo_size = gimp_get_physical_memory_size (); undo_size = gimp_get_physical_memory_size ();
@ -443,81 +532,115 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
else else
undo_size = 1 << 26; /* 64GB */ undo_size = 1 << 26; /* 64GB */
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_UNDO_SIZE, GIMP_CONFIG_PROP_MEMSIZE (object_class, PROP_UNDO_SIZE,
"undo-size", UNDO_SIZE_BLURB, "undo-size",
0, GIMP_MAX_MEMSIZE, undo_size, "Undo size",
GIMP_PARAM_STATIC_STRINGS | UNDO_SIZE_BLURB,
GIMP_CONFIG_PARAM_CONFIRM); 0, GIMP_MAX_MEMSIZE, undo_size,
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_UNDO_PREVIEW_SIZE, GIMP_PARAM_STATIC_STRINGS |
"undo-preview-size", UNDO_PREVIEW_SIZE_BLURB, GIMP_CONFIG_PARAM_CONFIRM);
GIMP_TYPE_VIEW_SIZE,
GIMP_VIEW_SIZE_LARGE, GIMP_CONFIG_PROP_ENUM (object_class, PROP_UNDO_PREVIEW_SIZE,
GIMP_PARAM_STATIC_STRINGS | "undo-preview-size",
GIMP_CONFIG_PARAM_RESTART); "Undo preview size",
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_FILTER_HISTORY_SIZE, UNDO_PREVIEW_SIZE_BLURB,
"plug-in-history-size", /* compat name */ GIMP_TYPE_VIEW_SIZE,
FILTER_HISTORY_SIZE_BLURB, GIMP_VIEW_SIZE_LARGE,
0, 256, 10, GIMP_PARAM_STATIC_STRINGS |
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_INT (object_class, PROP_FILTER_HISTORY_SIZE,
PROP_PLUGINRC_PATH, "plug-in-history-size", /* compat name */
"pluginrc-path", PLUGINRC_PATH_BLURB, "Filter history size",
GIMP_CONFIG_PATH_FILE, FILTER_HISTORY_SIZE_BLURB,
"${gimp_dir}" G_DIR_SEPARATOR_S "pluginrc", 0, 256, 10,
GIMP_PARAM_STATIC_STRINGS | GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART); GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_LAYER_PREVIEWS,
"layer-previews", LAYER_PREVIEWS_BLURB, GIMP_CONFIG_PROP_PATH (object_class,
TRUE, PROP_PLUGINRC_PATH,
GIMP_PARAM_STATIC_STRINGS); "pluginrc-path",
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_LAYER_PREVIEW_SIZE, "plugninrc path",
"layer-preview-size", LAYER_PREVIEW_SIZE_BLURB, PLUGINRC_PATH_BLURB,
GIMP_TYPE_VIEW_SIZE, GIMP_CONFIG_PATH_FILE,
GIMP_VIEW_SIZE_MEDIUM, "${gimp_dir}" G_DIR_SEPARATOR_S "pluginrc",
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_THUMBNAIL_SIZE, GIMP_CONFIG_PARAM_RESTART);
"thumbnail-size", THUMBNAIL_SIZE_BLURB,
GIMP_TYPE_THUMBNAIL_SIZE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_LAYER_PREVIEWS,
GIMP_THUMBNAIL_SIZE_NORMAL, "layer-previews",
GIMP_PARAM_STATIC_STRINGS); "Layer previews",
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_THUMBNAIL_FILESIZE_LIMIT, LAYER_PREVIEWS_BLURB,
"thumbnail-filesize-limit", TRUE,
THUMBNAIL_FILESIZE_LIMIT_BLURB, GIMP_PARAM_STATIC_STRINGS);
0, GIMP_MAX_MEMSIZE, 1 << 22,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_ENUM (object_class, PROP_LAYER_PREVIEW_SIZE,
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_COLOR_MANAGEMENT, "layer-preview-size",
"color-management", COLOR_MANAGEMENT_BLURB, "Layer preview size",
GIMP_TYPE_COLOR_CONFIG, LAYER_PREVIEW_SIZE_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_TYPE_VIEW_SIZE,
GIMP_CONFIG_PARAM_AGGREGATE); GIMP_VIEW_SIZE_MEDIUM,
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_COLOR_PROFILE_POLICY, GIMP_PARAM_STATIC_STRINGS);
"color-profile-policy",
COLOR_PROFILE_POLICY_BLURB, GIMP_CONFIG_PROP_ENUM (object_class, PROP_THUMBNAIL_SIZE,
GIMP_TYPE_COLOR_PROFILE_POLICY, "thumbnail-size",
GIMP_COLOR_PROFILE_POLICY_ASK, "Thumbnail size",
GIMP_PARAM_STATIC_STRINGS); THUMBNAIL_SIZE_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DOCUMENT_HISTORY, GIMP_TYPE_THUMBNAIL_SIZE,
"save-document-history", GIMP_THUMBNAIL_SIZE_NORMAL,
SAVE_DOCUMENT_HISTORY_BLURB, GIMP_PARAM_STATIC_STRINGS);
TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_MEMSIZE (object_class, PROP_THUMBNAIL_FILESIZE_LIMIT,
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_QUICK_MASK_COLOR, "thumbnail-filesize-limit",
"quick-mask-color", QUICK_MASK_COLOR_BLURB, "Thumbnail file size limie",
TRUE, &red, THUMBNAIL_FILESIZE_LIMIT_BLURB,
GIMP_PARAM_STATIC_STRINGS); 0, GIMP_MAX_MEMSIZE, 1 << 22,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_OBJECT (object_class, PROP_COLOR_MANAGEMENT,
"color-management",
"Color management",
COLOR_MANAGEMENT_BLURB,
GIMP_TYPE_COLOR_CONFIG,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_COLOR_PROFILE_POLICY,
"color-profile-policy",
"Color profile policy",
COLOR_PROFILE_POLICY_BLURB,
GIMP_TYPE_COLOR_PROFILE_POLICY,
GIMP_COLOR_PROFILE_POLICY_ASK,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SAVE_DOCUMENT_HISTORY,
"save-document-history",
"Save document history",
SAVE_DOCUMENT_HISTORY_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_RGB (object_class, PROP_QUICK_MASK_COLOR,
"quick-mask-color",
"Quick mask color",
QUICK_MASK_COLOR_BLURB,
TRUE, &red,
GIMP_PARAM_STATIC_STRINGS);
/* only for backward compatibility: */ /* only for backward compatibility: */
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INSTALL_COLORMAP, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_INSTALL_COLORMAP,
"install-colormap", NULL, "install-colormap",
FALSE, NULL, NULL,
GIMP_PARAM_STATIC_STRINGS | FALSE,
GIMP_CONFIG_PARAM_IGNORE); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MIN_COLORS, GIMP_CONFIG_PARAM_IGNORE);
"min-colors", NULL,
27, 256, 144, GIMP_CONFIG_PROP_INT (object_class, PROP_MIN_COLORS,
GIMP_PARAM_STATIC_STRINGS | "min-colors",
GIMP_CONFIG_PARAM_IGNORE); NULL, NULL,
27, 256, 144,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
} }
static void static void

View File

@ -114,166 +114,231 @@ gimp_display_config_class_init (GimpDisplayConfigClass *klass)
object_class->set_property = gimp_display_config_set_property; object_class->set_property = gimp_display_config_set_property;
object_class->get_property = gimp_display_config_get_property; object_class->get_property = gimp_display_config_get_property;
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TRANSPARENCY_SIZE, GIMP_CONFIG_PROP_ENUM (object_class, PROP_TRANSPARENCY_SIZE,
"transparency-size", TRANSPARENCY_SIZE_BLURB, "transparency-size",
GIMP_TYPE_CHECK_SIZE, "Transparency size",
GIMP_CHECK_SIZE_MEDIUM_CHECKS, TRANSPARENCY_SIZE_BLURB,
GIMP_PARAM_STATIC_STRINGS); GIMP_TYPE_CHECK_SIZE,
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TRANSPARENCY_TYPE, GIMP_CHECK_SIZE_MEDIUM_CHECKS,
"transparency-type", TRANSPARENCY_TYPE_BLURB, GIMP_PARAM_STATIC_STRINGS);
GIMP_TYPE_CHECK_TYPE,
GIMP_CHECK_TYPE_GRAY_CHECKS,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SNAP_DISTANCE,
"snap-distance", DEFAULT_SNAP_DISTANCE_BLURB,
1, 255, 8,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MARCHING_ANTS_SPEED,
"marching-ants-speed",
MARCHING_ANTS_SPEED_BLURB,
10, 10000, DEFAULT_MARCHING_ANTS_SPEED,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESIZE_WINDOWS_ON_ZOOM,
"resize-windows-on-zoom",
RESIZE_WINDOWS_ON_ZOOM_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESIZE_WINDOWS_ON_RESIZE,
"resize-windows-on-resize",
RESIZE_WINDOWS_ON_RESIZE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEFAULT_DOT_FOR_DOT,
"default-dot-for-dot",
DEFAULT_DOT_FOR_DOT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INITIAL_ZOOM_TO_FIT,
"initial-zoom-to-fit",
INITIAL_ZOOM_TO_FIT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PERFECT_MOUSE,
"perfect-mouse", PERFECT_MOUSE_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_MODE,
"cursor-mode", CURSOR_MODE_BLURB,
GIMP_TYPE_CURSOR_MODE,
GIMP_CURSOR_MODE_TOOL_ICON,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CURSOR_UPDATING,
"cursor-updating", CURSOR_UPDATING_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_BRUSH_OUTLINE,
"show-brush-outline",
SHOW_BRUSH_OUTLINE_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_PAINT_TOOL_CURSOR,
"show-paint-tool-cursor",
SHOW_PAINT_TOOL_CURSOR_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_IMAGE_TITLE_FORMAT,
"image-title-format",
IMAGE_TITLE_FORMAT_BLURB,
GIMP_CONFIG_DEFAULT_IMAGE_TITLE_FORMAT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_IMAGE_STATUS_FORMAT,
"image-status-format",
IMAGE_STATUS_FORMAT_BLURB,
GIMP_CONFIG_DEFAULT_IMAGE_STATUS_FORMAT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_MONITOR_XRESOLUTION,
"monitor-xresolution",
MONITOR_XRESOLUTION_BLURB,
DEFAULT_MONITOR_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_MONITOR_YRESOLUTION,
"monitor-yresolution",
MONITOR_YRESOLUTION_BLURB,
DEFAULT_MONITOR_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MONITOR_RES_FROM_GDK,
"monitor-resolution-from-windowing-system",
MONITOR_RES_FROM_GDK_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_NAV_PREVIEW_SIZE,
"navigation-preview-size",
NAVIGATION_PREVIEW_SIZE_BLURB,
GIMP_TYPE_VIEW_SIZE,
GIMP_VIEW_SIZE_MEDIUM,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_VIEW,
"default-view",
DEFAULT_VIEW_BLURB,
GIMP_TYPE_DISPLAY_OPTIONS,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_FULLSCREEN_VIEW,
"default-fullscreen-view",
DEFAULT_FULLSCREEN_VIEW_BLURB,
GIMP_TYPE_DISPLAY_OPTIONS,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ACTIVATE_ON_FOCUS,
"activate-on-focus",
ACTIVATE_ON_FOCUS_BLURB,
DEFAULT_ACTIVATE_ON_FOCUS,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SPACE_BAR_ACTION,
"space-bar-action",
SPACE_BAR_ACTION_BLURB,
GIMP_TYPE_SPACE_BAR_ACTION,
GIMP_SPACE_BAR_ACTION_PAN,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ZOOM_QUALITY,
"zoom-quality",
ZOOM_QUALITY_BLURB,
GIMP_TYPE_ZOOM_QUALITY,
GIMP_ZOOM_QUALITY_HIGH,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_EVENT_HISTORY, GIMP_CONFIG_PROP_ENUM (object_class, PROP_TRANSPARENCY_TYPE,
"use-event-history", "transparency-type",
DEFAULT_USE_EVENT_HISTORY_BLURB, "Transparency type",
DEFAULT_USE_EVENT_HISTORY, TRANSPARENCY_TYPE_BLURB,
GIMP_PARAM_STATIC_STRINGS); GIMP_TYPE_CHECK_TYPE,
GIMP_CHECK_TYPE_GRAY_CHECKS,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_SNAP_DISTANCE,
"snap-distance",
"Snap distance",
DEFAULT_SNAP_DISTANCE_BLURB,
1, 255, 8,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_MARCHING_ANTS_SPEED,
"marching-ants-speed",
"Marching ants speed",
MARCHING_ANTS_SPEED_BLURB,
10, 10000, DEFAULT_MARCHING_ANTS_SPEED,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_RESIZE_WINDOWS_ON_ZOOM,
"resize-windows-on-zoom",
"Resize windows on zoom",
RESIZE_WINDOWS_ON_ZOOM_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_RESIZE_WINDOWS_ON_RESIZE,
"resize-windows-on-resize",
"Resize windows on resize",
RESIZE_WINDOWS_ON_RESIZE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DEFAULT_DOT_FOR_DOT,
"default-dot-for-dot",
"Default dot-for-dot",
DEFAULT_DOT_FOR_DOT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_INITIAL_ZOOM_TO_FIT,
"initial-zoom-to-fit",
"Initial zoom-to-fit",
INITIAL_ZOOM_TO_FIT_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_PERFECT_MOUSE,
"perfect-mouse",
"Perfect mouse",
PERFECT_MOUSE_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_CURSOR_MODE,
"cursor-mode",
"Cursor mode",
CURSOR_MODE_BLURB,
GIMP_TYPE_CURSOR_MODE,
GIMP_CURSOR_MODE_TOOL_ICON,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_CURSOR_UPDATING,
"cursor-updating",
"Cursor updating",
CURSOR_UPDATING_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_BRUSH_OUTLINE,
"show-brush-outline",
"Show brush outline",
SHOW_BRUSH_OUTLINE_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_PAINT_TOOL_CURSOR,
"show-paint-tool-cursor",
"Show paint tool cursor",
SHOW_PAINT_TOOL_CURSOR_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_STRING (object_class, PROP_IMAGE_TITLE_FORMAT,
"image-title-format",
"Image title format",
IMAGE_TITLE_FORMAT_BLURB,
GIMP_CONFIG_DEFAULT_IMAGE_TITLE_FORMAT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_STRING (object_class, PROP_IMAGE_STATUS_FORMAT,
"image-status-format",
"Image statusbar format",
IMAGE_STATUS_FORMAT_BLURB,
GIMP_CONFIG_DEFAULT_IMAGE_STATUS_FORMAT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_RESOLUTION (object_class, PROP_MONITOR_XRESOLUTION,
"monitor-xresolution",
"Monitor resolution X",
MONITOR_XRESOLUTION_BLURB,
DEFAULT_MONITOR_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_RESOLUTION (object_class, PROP_MONITOR_YRESOLUTION,
"monitor-yresolution",
"Monitor resolution Y",
MONITOR_YRESOLUTION_BLURB,
DEFAULT_MONITOR_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_MONITOR_RES_FROM_GDK,
"monitor-resolution-from-windowing-system",
"Monitor resolution from windowing system",
MONITOR_RES_FROM_GDK_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_NAV_PREVIEW_SIZE,
"navigation-preview-size",
"Navigation preview size",
NAVIGATION_PREVIEW_SIZE_BLURB,
GIMP_TYPE_VIEW_SIZE,
GIMP_VIEW_SIZE_MEDIUM,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_OBJECT (object_class, PROP_DEFAULT_VIEW,
"default-view",
"Default view options",
DEFAULT_VIEW_BLURB,
GIMP_TYPE_DISPLAY_OPTIONS,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_PROP_OBJECT (object_class, PROP_DEFAULT_FULLSCREEN_VIEW,
"default-fullscreen-view",
"Default fullscreen view options",
DEFAULT_FULLSCREEN_VIEW_BLURB,
GIMP_TYPE_DISPLAY_OPTIONS,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_AGGREGATE);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_ACTIVATE_ON_FOCUS,
"activate-on-focus",
"Activate on focus",
ACTIVATE_ON_FOCUS_BLURB,
DEFAULT_ACTIVATE_ON_FOCUS,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_SPACE_BAR_ACTION,
"space-bar-action",
"Space bar action",
SPACE_BAR_ACTION_BLURB,
GIMP_TYPE_SPACE_BAR_ACTION,
GIMP_SPACE_BAR_ACTION_PAN,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_ZOOM_QUALITY,
"zoom-quality",
"Zoom quality",
ZOOM_QUALITY_BLURB,
GIMP_TYPE_ZOOM_QUALITY,
GIMP_ZOOM_QUALITY_HIGH,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_USE_EVENT_HISTORY,
"use-event-history",
"Use event history",
DEFAULT_USE_EVENT_HISTORY_BLURB,
DEFAULT_USE_EVENT_HISTORY,
GIMP_PARAM_STATIC_STRINGS);
/* only for backward compatibility: */ /* only for backward compatibility: */
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_GUIDES, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_GUIDES,
"default-snap-to-guides", NULL, "default-snap-to-guides",
TRUE, NULL, NULL,
GIMP_PARAM_STATIC_STRINGS | TRUE,
GIMP_CONFIG_PARAM_IGNORE); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_GRID, GIMP_CONFIG_PARAM_IGNORE);
"default-snap-to-grid", NULL,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_GRID,
GIMP_PARAM_STATIC_STRINGS | "default-snap-to-grid",
GIMP_CONFIG_PARAM_IGNORE); NULL, NULL,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_CANVAS, FALSE,
"default-snap-to-canvas", NULL, GIMP_PARAM_STATIC_STRINGS |
FALSE, GIMP_CONFIG_PARAM_IGNORE);
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_CANVAS,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_PATH, "default-snap-to-canvas",
"default-snap-to-path", NULL, NULL, NULL,
FALSE, FALSE,
GIMP_PARAM_STATIC_STRINGS | GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE); GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONFIRM_ON_CLOSE,
"confirm-on-close", NULL, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_DEFAULT_SNAP_TO_PATH,
TRUE, "default-snap-to-path",
GIMP_PARAM_STATIC_STRINGS | NULL, NULL,
GIMP_CONFIG_PARAM_IGNORE); FALSE,
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_XOR_COLOR, GIMP_PARAM_STATIC_STRINGS |
"xor-color", NULL, GIMP_CONFIG_PARAM_IGNORE);
FALSE, &color,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_CONFIRM_ON_CLOSE,
GIMP_CONFIG_PARAM_IGNORE); "confirm-on-close",
NULL, NULL,
TRUE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_PROP_RGB (object_class, PROP_XOR_COLOR,
"xor-color",
NULL, NULL,
FALSE, &color,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
} }
static void static void

View File

@ -106,67 +106,111 @@ gimp_display_options_class_init (GimpDisplayOptionsClass *klass)
object_class->set_property = gimp_display_options_set_property; object_class->set_property = gimp_display_options_set_property;
object_class->get_property = gimp_display_options_get_property; object_class->get_property = gimp_display_options_get_property;
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
"show-menubar", SHOW_MENUBAR_BLURB, "show-menubar",
TRUE, "Show menubar",
GIMP_PARAM_STATIC_STRINGS); SHOW_MENUBAR_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR, TRUE,
"show-statusbar", SHOW_STATUSBAR_BLURB, GIMP_PARAM_STATIC_STRINGS);
TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS, "show-statusbar",
"show-rulers", SHOW_RULERS_BLURB, "Show statusbar",
TRUE, SHOW_STATUSBAR_BLURB,
GIMP_PARAM_STATIC_STRINGS); TRUE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS, GIMP_PARAM_STATIC_STRINGS);
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
TRUE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
GIMP_PARAM_STATIC_STRINGS); "show-rulers",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION, "Show rulers",
"show-selection", SHOW_SELECTION_BLURB, SHOW_RULERS_BLURB,
TRUE, TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
TRUE, "show-scrollbars",
GIMP_PARAM_STATIC_STRINGS); "Show scrollbars",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES, SHOW_SCROLLBARS_BLURB,
"show-guides", SHOW_GUIDES_BLURB, TRUE,
TRUE, GIMP_PARAM_STATIC_STRINGS);
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
"show-grid", SHOW_GRID_BLURB, "show-selection",
FALSE, "Show selection",
GIMP_PARAM_STATIC_STRINGS); SHOW_SELECTION_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS, TRUE,
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB, GIMP_PARAM_STATIC_STRINGS);
TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES, "show-layer-boundary",
"snap-to-guides", SNAP_TO_GUIDES_BLURB, "Show layer boundary",
TRUE, SHOW_LAYER_BOUNDARY_BLURB,
GIMP_PARAM_STATIC_STRINGS); TRUE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID, GIMP_PARAM_STATIC_STRINGS);
"snap-to-grid", SNAP_TO_GRID_BLURB,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
GIMP_PARAM_STATIC_STRINGS); "show-guides",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS, "Show guides",
"snap-to-canvas", SNAP_TO_CANVAS_BLURB, SHOW_GUIDES_BLURB,
FALSE, TRUE,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH,
"snap-to-path", SNAP_TO_PATH_BLURB, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
FALSE, "show-grid",
GIMP_PARAM_STATIC_STRINGS); "Show grid",
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE, SHOW_GRID_BLURB,
"padding-mode", CANVAS_PADDING_MODE_BLURB, FALSE,
GIMP_TYPE_CANVAS_PADDING_MODE, GIMP_PARAM_STATIC_STRINGS);
GIMP_CANVAS_PADDING_MODE_DEFAULT,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR, "show-sample-points",
"padding-color", CANVAS_PADDING_COLOR_BLURB, "Show sample points",
FALSE, &white, SHOW_SAMPLE_POINTS_BLURB,
GIMP_PARAM_STATIC_STRINGS); TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES,
"snap-to-guides",
"Snap to guides",
SNAP_TO_GUIDES_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID,
"snap-to-grid",
"Snap to grid",
SNAP_TO_GRID_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS,
"snap-to-canvas",
"Snap to canvas",
SNAP_TO_CANVAS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH,
"snap-to-path",
"Snap to path",
SNAP_TO_PATH_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_PADDING_MODE,
"padding-mode",
"Padding mode",
CANVAS_PADDING_MODE_BLURB,
GIMP_TYPE_CANVAS_PADDING_MODE,
GIMP_CANVAS_PADDING_MODE_DEFAULT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_RGB (object_class, PROP_PADDING_COLOR,
"padding-color",
"Padding color",
CANVAS_PADDING_COLOR_BLURB,
FALSE, &white,
GIMP_PARAM_STATIC_STRINGS);
} }
static void static void
@ -180,67 +224,111 @@ gimp_display_options_fullscreen_class_init (GimpDisplayOptionsFullscreenClass *k
object_class->set_property = gimp_display_options_set_property; object_class->set_property = gimp_display_options_set_property;
object_class->get_property = gimp_display_options_get_property; object_class->get_property = gimp_display_options_get_property;
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
"show-menubar", SHOW_MENUBAR_BLURB, "show-menubar",
FALSE, "Show menubar",
GIMP_PARAM_STATIC_STRINGS); SHOW_MENUBAR_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR, FALSE,
"show-statusbar", SHOW_STATUSBAR_BLURB, GIMP_PARAM_STATIC_STRINGS);
FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS, "show-statusbar",
"show-rulers", SHOW_RULERS_BLURB, "Show statusbar",
FALSE, SHOW_STATUSBAR_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS, GIMP_PARAM_STATIC_STRINGS);
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
GIMP_PARAM_STATIC_STRINGS); "show-rulers",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION, "Show rulers",
"show-selection", SHOW_SELECTION_BLURB, SHOW_RULERS_BLURB,
FALSE, FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
FALSE, "show-scrollbars",
GIMP_PARAM_STATIC_STRINGS); "Show scrollbars",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES, SHOW_SCROLLBARS_BLURB,
"show-guides", SHOW_GUIDES_BLURB, FALSE,
FALSE, GIMP_PARAM_STATIC_STRINGS);
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
"show-grid", SHOW_GRID_BLURB, "show-selection",
FALSE, "Show selection",
GIMP_PARAM_STATIC_STRINGS); SHOW_SELECTION_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS, FALSE,
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB, GIMP_PARAM_STATIC_STRINGS);
FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES, "show-layer-boundary",
"snap-to-guides", SNAP_TO_GUIDES_BLURB, "Show layer boundary",
TRUE, SHOW_LAYER_BOUNDARY_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID, GIMP_PARAM_STATIC_STRINGS);
"snap-to-grid", SHOW_SCROLLBARS_BLURB,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
GIMP_PARAM_STATIC_STRINGS); "show-guides",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS, "Show guides",
"snap-to-canvas", SNAP_TO_CANVAS_BLURB, SHOW_GUIDES_BLURB,
FALSE, FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH,
"snap-to-path", SNAP_TO_PATH_BLURB, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
FALSE, "show-grid",
GIMP_PARAM_STATIC_STRINGS); "Show grid",
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE, SHOW_GRID_BLURB,
"padding-mode", CANVAS_PADDING_MODE_BLURB, FALSE,
GIMP_TYPE_CANVAS_PADDING_MODE, GIMP_PARAM_STATIC_STRINGS);
GIMP_CANVAS_PADDING_MODE_CUSTOM,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR, "show-sample-points",
"padding-color", CANVAS_PADDING_COLOR_BLURB, "Show sample points",
FALSE, &black, SHOW_SAMPLE_POINTS_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES,
"snap-to-guides",
"Snap to guides",
SNAP_TO_GUIDES_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID,
"snap-to-grid",
"Snap to grid",
SHOW_SCROLLBARS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS,
"snap-to-canvas",
"Snap to canvas",
SNAP_TO_CANVAS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH,
"snap-to-path",
"Snap to path",
SNAP_TO_PATH_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_PADDING_MODE,
"padding-mode",
"Padding mode",
CANVAS_PADDING_MODE_BLURB,
GIMP_TYPE_CANVAS_PADDING_MODE,
GIMP_CANVAS_PADDING_MODE_CUSTOM,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_RGB (object_class, PROP_PADDING_COLOR,
"padding-color",
"Padding color",
CANVAS_PADDING_COLOR_BLURB,
FALSE, &black,
GIMP_PARAM_STATIC_STRINGS);
} }
static void static void
@ -251,50 +339,82 @@ gimp_display_options_no_image_class_init (GimpDisplayOptionsNoImageClass *klass)
object_class->set_property = gimp_display_options_set_property; object_class->set_property = gimp_display_options_set_property;
object_class->get_property = gimp_display_options_get_property; object_class->get_property = gimp_display_options_get_property;
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
"show-rulers", SHOW_RULERS_BLURB, "show-rulers",
FALSE, "Show rulers",
GIMP_PARAM_STATIC_STRINGS); SHOW_RULERS_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS, FALSE,
"show-scrollbars", SHOW_SCROLLBARS_BLURB, GIMP_PARAM_STATIC_STRINGS);
FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION, "show-scrollbars",
"show-selection", SHOW_SELECTION_BLURB, "Show scrollbars",
FALSE, SHOW_SCROLLBARS_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY, GIMP_PARAM_STATIC_STRINGS);
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
GIMP_PARAM_STATIC_STRINGS); "show-selection",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES, "Show selection",
"show-guides", SHOW_GUIDES_BLURB, SHOW_SELECTION_BLURB,
FALSE, FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
"show-grid", SHOW_GRID_BLURB, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
FALSE, "show-layer-boundary",
GIMP_PARAM_STATIC_STRINGS); "Show layer boundary",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS, SHOW_LAYER_BOUNDARY_BLURB,
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB, FALSE,
FALSE, GIMP_PARAM_STATIC_STRINGS);
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
"snap-to-guides", SNAP_TO_GUIDES_BLURB, "show-guides",
TRUE, "Show guides",
GIMP_PARAM_STATIC_STRINGS); SHOW_GUIDES_BLURB,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID, FALSE,
"snap-to-grid", SHOW_SCROLLBARS_BLURB, GIMP_PARAM_STATIC_STRINGS);
FALSE,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS, "show-grid",
"snap-to-canvas", SNAP_TO_CANVAS_BLURB, "Show grid",
FALSE, SHOW_GRID_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH, GIMP_PARAM_STATIC_STRINGS);
"snap-to-path", SNAP_TO_PATH_BLURB,
FALSE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
GIMP_PARAM_STATIC_STRINGS); "show-sample-points",
"Show sample points",
SHOW_SAMPLE_POINTS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GUIDES,
"snap-to-guides",
"Snap to guides",
SNAP_TO_GUIDES_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_GRID,
"snap-to-grid",
"Snap to grid",
SHOW_SCROLLBARS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_CANVAS,
"snap-to-canvas",
"Snap to canvas",
SNAP_TO_CANVAS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SNAP_TO_PATH,
"snap-to-path",
"Snap tp path",
SNAP_TO_PATH_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
} }
static void static void

View File

@ -113,18 +113,23 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
object_class->set_property = gimp_gegl_config_set_property; object_class->set_property = gimp_gegl_config_set_property;
object_class->get_property = gimp_gegl_config_get_property; object_class->get_property = gimp_gegl_config_get_property;
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_TEMP_PATH, GIMP_CONFIG_PROP_PATH (object_class, PROP_TEMP_PATH,
"temp-path", TEMP_PATH_BLURB, "temp-path",
GIMP_CONFIG_PATH_DIR, "Temp path",
"${gimp_dir}" G_DIR_SEPARATOR_S "tmp", TEMP_PATH_BLURB,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PATH_DIR,
GIMP_CONFIG_PARAM_RESTART); "${gimp_dir}" G_DIR_SEPARATOR_S "tmp",
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_SWAP_PATH, GIMP_PARAM_STATIC_STRINGS |
"swap-path", SWAP_PATH_BLURB, GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PATH_DIR,
"${gimp_dir}", GIMP_CONFIG_PROP_PATH (object_class, PROP_SWAP_PATH,
GIMP_PARAM_STATIC_STRINGS | "swap-path",
GIMP_CONFIG_PARAM_RESTART); "Swap path",
SWAP_PATH_BLURB,
GIMP_CONFIG_PATH_DIR,
"${gimp_dir}",
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
num_processors = g_get_num_processors (); num_processors = g_get_num_processors ();
@ -134,10 +139,12 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
num_processors = MIN (num_processors, GIMP_MAX_NUM_THREADS); num_processors = MIN (num_processors, GIMP_MAX_NUM_THREADS);
GIMP_CONFIG_INSTALL_PROP_UINT (object_class, PROP_NUM_PROCESSORS, GIMP_CONFIG_PROP_UINT (object_class, PROP_NUM_PROCESSORS,
"num-processors", NUM_PROCESSORS_BLURB, "num-processors",
1, GIMP_MAX_NUM_THREADS, num_processors, "Number of processors to use",
GIMP_PARAM_STATIC_STRINGS); NUM_PROCESSORS_BLURB,
1, GIMP_MAX_NUM_THREADS, num_processors,
GIMP_PARAM_STATIC_STRINGS);
memory_size = gimp_get_physical_memory_size (); memory_size = gimp_get_physical_memory_size ();
@ -149,23 +156,28 @@ gimp_gegl_config_class_init (GimpGeglConfigClass *klass)
else else
memory_size = 1 << 30; /* 1GB */ memory_size = 1 << 30; /* 1GB */
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_TILE_CACHE_SIZE, GIMP_CONFIG_PROP_MEMSIZE (object_class, PROP_TILE_CACHE_SIZE,
"tile-cache-size", TILE_CACHE_SIZE_BLURB, "tile-cache-size",
0, GIMP_MAX_MEM_PROCESS, "Tile cach size",
memory_size, TILE_CACHE_SIZE_BLURB,
GIMP_PARAM_STATIC_STRINGS | 0, GIMP_MAX_MEM_PROCESS,
GIMP_CONFIG_PARAM_CONFIRM); memory_size,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_CONFIRM);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_OPENCL, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_USE_OPENCL,
"use-opencl", USE_OPENCL_BLURB, "use-opencl",
TRUE, "Use OpenCL",
GIMP_PARAM_STATIC_STRINGS); USE_OPENCL_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
/* only for backward compatibility: */ /* only for backward compatibility: */
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_STINGY_MEMORY_USE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_STINGY_MEMORY_USE,
"stingy-memory-use", NULL, "stingy-memory-use",
FALSE, NULL, NULL,
GIMP_CONFIG_PARAM_IGNORE); FALSE,
GIMP_CONFIG_PARAM_IGNORE);
} }
static void static void

View File

@ -127,186 +127,275 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
object_class->set_property = gimp_gui_config_set_property; object_class->set_property = gimp_gui_config_set_property;
object_class->get_property = gimp_gui_config_get_property; object_class->get_property = gimp_gui_config_get_property;
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_TOOL_CHANGES_ACTIVE, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_MOVE_TOOL_CHANGES_ACTIVE,
"move-tool-changes-active", "move-tool-changes-active",
MOVE_TOOL_CHANGES_ACTIVE_BLURB, "Move tool changes active layer",
FALSE, MOVE_TOOL_CHANGES_ACTIVE_BLURB,
GIMP_PARAM_STATIC_STRINGS); FALSE,
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_IMAGE_MAP_TOOL_MAX_RECENT, GIMP_PARAM_STATIC_STRINGS);
"image-map-tool-max-recent",
IMAGE_MAP_TOOL_MAX_RECENT_BLURB,
0, 255, 10,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRUST_DIRTY_FLAG,
"trust-dirty-flag",
TRUST_DIRTY_FLAG_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DEVICE_STATUS,
"save-device-status",
SAVE_DEVICE_STATUS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_SESSION_INFO,
"save-session-info",
SAVE_SESSION_INFO_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_SESSION,
"restore-session", RESTORE_SESSION_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_MONITOR,
"restore-monitor", RESTORE_MONITOR_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_TOOL_OPTIONS,
"save-tool-options",
SAVE_TOOL_OPTIONS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOLTIPS,
"show-tooltips", SHOW_TOOLTIPS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TEAROFF_MENUS,
"tearoff-menus", TEAROFF_MENUS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CAN_CHANGE_ACCELS,
"can-change-accels", CAN_CHANGE_ACCELS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_ACCELS,
"save-accels", SAVE_ACCELS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_ACCELS,
"restore-accels", RESTORE_ACCELS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LAST_OPENED_SIZE,
"last-opened-size", LAST_OPENED_SIZE_BLURB,
0, 1024, 10,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_MAX_NEW_IMAGE_SIZE,
"max-new-image-size",
MAX_NEW_IMAGE_SIZE_BLURB,
0, GIMP_MAX_MEMSIZE, 1 << 27, /* 128MB */
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_COLOR_AREA,
"toolbox-color-area",
TOOLBOX_COLOR_AREA_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_FOO_AREA,
"toolbox-foo-area",
TOOLBOX_FOO_AREA_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_IMAGE_AREA,
"toolbox-image-area",
TOOLBOX_IMAGE_AREA_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_WILBER,
"toolbox-wilber",
TOOLBOX_WILBER_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
path = gimp_config_build_data_path ("themes");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_THEME_PATH,
"theme-path", THEME_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_THEME,
"theme", THEME_BLURB,
GIMP_CONFIG_DEFAULT_THEME,
GIMP_PARAM_STATIC_STRINGS);
path = gimp_config_build_data_path ("icons");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_ICON_THEME_PATH,
"icon-theme-path", ICON_THEME_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_ICON_THEME,
"icon-theme", ICON_THEME_BLURB,
GIMP_CONFIG_DEFAULT_ICON_THEME,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_HELP,
"use-help", USE_HELP_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_HELP_BUTTON,
"show-help-button", SHOW_HELP_BUTTON_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_HELP_LOCALES,
"help-locales", HELP_LOCALES_BLURB,
"",
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_HELP_BROWSER,
"help-browser", HELP_BROWSER_BLURB,
GIMP_TYPE_HELP_BROWSER_TYPE,
DEFAULT_HELP_BROWSER,
GIMP_PARAM_STATIC_STRINGS);
/* As a default, we hide unavailable actions. */
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SEARCH_SHOW_UNAVAILABLE_ACTIONS,
"search-show-unavailable-actions", SEARCH_SHOW_UNAVAILABLE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ACTION_HISTORY_SIZE,
"action-history-size", ACTION_HISTORY_SIZE_BLURB,
0, 1000, 100,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USER_MANUAL_ONLINE,
"user-manual-online",
USER_MANUAL_ONLINE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_USER_MANUAL_ONLINE_URI,
"user-manual-online-uri",
USER_MANUAL_ONLINE_URI_BLURB,
DEFAULT_USER_MANUAL_ONLINE_URI,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DOCK_WINDOW_HINT,
"dock-window-hint",
DOCK_WINDOW_HINT_BLURB,
GIMP_TYPE_WINDOW_HINT,
GIMP_WINDOW_HINT_UTILITY,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_HANDEDNESS,
"cursor-handedness", CURSOR_HANDEDNESS_BLURB,
GIMP_TYPE_HANDEDNESS,
GIMP_HANDEDNESS_RIGHT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PLAYGROUND_NPD_TOOL, GIMP_CONFIG_PROP_INT (object_class, PROP_IMAGE_MAP_TOOL_MAX_RECENT,
"playground-npd-tool", "image-map-tool-max-recent",
PLAYGROUND_NPD_TOOL_BLURB, "Max recent settings to keep in filters",
FALSE, IMAGE_MAP_TOOL_MAX_RECENT_BLURB,
GIMP_PARAM_STATIC_STRINGS | 0, 255, 10,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class,
PROP_PLAYGROUND_HANDLE_TRANSFORM_TOOL, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TRUST_DIRTY_FLAG,
"playground-handle-transform-tool", "trust-dirty-flag",
PLAYGROUND_HANDLE_TRANSFORM_TOOL_BLURB, "Trust dirty flag",
FALSE, TRUST_DIRTY_FLAG_BLURB,
GIMP_PARAM_STATIC_STRINGS | FALSE,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class,
PROP_PLAYGROUND_SEAMLESS_CLONE_TOOL, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SAVE_DEVICE_STATUS,
"playground-seamless-clone-tool", "save-device-status",
PLAYGROUND_SEAMLESS_CLONE_TOOL_BLURB, "Save device status",
FALSE, SAVE_DEVICE_STATUS_BLURB,
GIMP_PARAM_STATIC_STRINGS | FALSE,
GIMP_CONFIG_PARAM_RESTART); GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SAVE_SESSION_INFO,
"save-session-info",
"Save session",
SAVE_SESSION_INFO_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_RESTORE_SESSION,
"restore-session",
"Restore session",
RESTORE_SESSION_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_RESTORE_MONITOR,
"restore-monitor",
"Restore monitor",
RESTORE_MONITOR_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SAVE_TOOL_OPTIONS,
"save-tool-options",
"Save tool options",
SAVE_TOOL_OPTIONS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_TOOLTIPS,
"show-tooltips",
"Show tooltips",
SHOW_TOOLTIPS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TEAROFF_MENUS,
"tearoff-menus",
"Tearoff menus",
TEAROFF_MENUS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_CAN_CHANGE_ACCELS,
"can-change-accels",
"Can change accelerators",
CAN_CHANGE_ACCELS_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SAVE_ACCELS,
"save-accels",
"Save accelerators",
SAVE_ACCELS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_RESTORE_ACCELS,
"restore-accels",
"Restore acclerator",
RESTORE_ACCELS_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_LAST_OPENED_SIZE,
"last-opened-size",
"Size of recently used menu",
LAST_OPENED_SIZE_BLURB,
0, 1024, 10,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PROP_MEMSIZE (object_class, PROP_MAX_NEW_IMAGE_SIZE,
"max-new-image-size",
"Maximum new image size",
MAX_NEW_IMAGE_SIZE_BLURB,
0, GIMP_MAX_MEMSIZE, 1 << 27, /* 128MB */
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TOOLBOX_COLOR_AREA,
"toolbox-color-area",
"Show toolbox color area",
TOOLBOX_COLOR_AREA_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TOOLBOX_FOO_AREA,
"toolbox-foo-area",
"Show toolbox foo area",
TOOLBOX_FOO_AREA_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TOOLBOX_IMAGE_AREA,
"toolbox-image-area",
"Show toolbox image area",
TOOLBOX_IMAGE_AREA_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TOOLBOX_WILBER,
"toolbox-wilber",
"Show toolbox wilber",
TOOLBOX_WILBER_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
path = gimp_config_build_data_path ("themes");
GIMP_CONFIG_PROP_PATH (object_class, PROP_THEME_PATH,
"theme-path",
"Theme path",
THEME_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
GIMP_CONFIG_PROP_STRING (object_class, PROP_THEME,
"theme",
"Theme",
THEME_BLURB,
GIMP_CONFIG_DEFAULT_THEME,
GIMP_PARAM_STATIC_STRINGS);
path = gimp_config_build_data_path ("icons");
GIMP_CONFIG_PROP_PATH (object_class, PROP_ICON_THEME_PATH,
"icon-theme-path",
"Icon theme path",
ICON_THEME_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_free (path);
GIMP_CONFIG_PROP_STRING (object_class, PROP_ICON_THEME,
"icon-theme",
"Icon theme",
ICON_THEME_BLURB,
GIMP_CONFIG_DEFAULT_ICON_THEME,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_USE_HELP,
"use-help",
"Use help",
USE_HELP_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_HELP_BUTTON,
"show-help-button",
"Show help button",
SHOW_HELP_BUTTON_BLURB,
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_STRING (object_class, PROP_HELP_LOCALES,
"help-locales",
"Help locales",
HELP_LOCALES_BLURB,
"",
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_HELP_BROWSER,
"help-browser",
"Help browser",
HELP_BROWSER_BLURB,
GIMP_TYPE_HELP_BROWSER_TYPE,
DEFAULT_HELP_BROWSER,
GIMP_PARAM_STATIC_STRINGS);
/* As a default, we hide unavailable actions. */
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SEARCH_SHOW_UNAVAILABLE_ACTIONS,
"search-show-unavailable-actions",
"Show unavailable actions",
SEARCH_SHOW_UNAVAILABLE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_INT (object_class, PROP_ACTION_HISTORY_SIZE,
"action-history-size",
"Action history size",
ACTION_HISTORY_SIZE_BLURB,
0, 1000, 100,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_USER_MANUAL_ONLINE,
"user-manual-online",
"User manual online",
USER_MANUAL_ONLINE_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_STRING (object_class, PROP_USER_MANUAL_ONLINE_URI,
"user-manual-online-uri",
"User manual online URI",
USER_MANUAL_ONLINE_URI_BLURB,
DEFAULT_USER_MANUAL_ONLINE_URI,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_DOCK_WINDOW_HINT,
"dock-window-hint",
"Dock window hint",
DOCK_WINDOW_HINT_BLURB,
GIMP_TYPE_WINDOW_HINT,
GIMP_WINDOW_HINT_UTILITY,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PROP_ENUM (object_class, PROP_CURSOR_HANDEDNESS,
"cursor-handedness",
"Cursor handedness",
CURSOR_HANDEDNESS_BLURB,
GIMP_TYPE_HANDEDNESS,
GIMP_HANDEDNESS_RIGHT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_PLAYGROUND_NPD_TOOL,
"playground-npd-tool",
"Playground N-Point Deformation tool",
PLAYGROUND_NPD_TOOL_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PROP_BOOLEAN (object_class,
PROP_PLAYGROUND_HANDLE_TRANSFORM_TOOL,
"playground-handle-transform-tool",
"Playground Handle Transform tool",
PLAYGROUND_HANDLE_TRANSFORM_TOOL_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
GIMP_CONFIG_PROP_BOOLEAN (object_class,
PROP_PLAYGROUND_SEAMLESS_CLONE_TOOL,
"playground-seamless-clone-tool",
"Playground Seamless Clone tool",
PLAYGROUND_SEAMLESS_CLONE_TOOL_BLURB,
FALSE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_RESTART);
g_object_class_install_property (object_class, PROP_HIDE_DOCKS, g_object_class_install_property (object_class, PROP_HIDE_DOCKS,
g_param_spec_boolean ("hide-docks", g_param_spec_boolean ("hide-docks",
@ -339,50 +428,64 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
GIMP_PARAM_STATIC_STRINGS)); GIMP_PARAM_STATIC_STRINGS));
/* only for backward compatibility: */ /* only for backward compatibility: */
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_FORMAT, GIMP_CONFIG_PROP_ENUM (object_class, PROP_CURSOR_FORMAT,
"cursor-format", CURSOR_FORMAT_BLURB, "cursor-format",
GIMP_TYPE_CURSOR_FORMAT, NULL, CURSOR_FORMAT_BLURB,
GIMP_CURSOR_FORMAT_PIXBUF, GIMP_TYPE_CURSOR_FORMAT,
GIMP_PARAM_STATIC_STRINGS | GIMP_CURSOR_FORMAT_PIXBUF,
GIMP_CONFIG_PARAM_IGNORE); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INFO_WINDOW_PER_DISPLAY, GIMP_CONFIG_PARAM_IGNORE);
"info-window-per-display",
NULL, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_INFO_WINDOW_PER_DISPLAY,
FALSE, "info-window-per-display",
GIMP_PARAM_STATIC_STRINGS | NULL, NULL,
GIMP_CONFIG_PARAM_IGNORE); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MENU_MNEMONICS, GIMP_PARAM_STATIC_STRINGS |
"menu-mnemonics", NULL, GIMP_CONFIG_PARAM_IGNORE);
TRUE,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_MENU_MNEMONICS,
GIMP_CONFIG_PARAM_IGNORE); "menu-mnemonics",
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOL_TIPS, NULL, NULL,
"show-tool-tips", NULL, TRUE,
FALSE, GIMP_PARAM_STATIC_STRINGS |
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TIPS, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_TOOL_TIPS,
"show-tips", NULL, "show-tool-tips",
FALSE, NULL, NULL,
GIMP_PARAM_STATIC_STRINGS | FALSE,
GIMP_CONFIG_PARAM_IGNORE); GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TOOLBOX_WINDOW_HINT, GIMP_CONFIG_PARAM_IGNORE);
"toolbox-window-hint", NULL,
GIMP_TYPE_WINDOW_HINT, GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_SHOW_TIPS,
GIMP_WINDOW_HINT_UTILITY, "show-tips",
GIMP_PARAM_STATIC_STRINGS | NULL, NULL,
GIMP_CONFIG_PARAM_IGNORE); FALSE,
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRANSIENT_DOCKS, GIMP_PARAM_STATIC_STRINGS |
"transient-docks", NULL, GIMP_CONFIG_PARAM_IGNORE);
FALSE,
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PROP_ENUM (object_class, PROP_TOOLBOX_WINDOW_HINT,
GIMP_CONFIG_PARAM_IGNORE); "toolbox-window-hint",
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_WEB_BROWSER, NULL, NULL,
"web-browser", NULL, GIMP_TYPE_WINDOW_HINT,
GIMP_CONFIG_PATH_FILE, GIMP_WINDOW_HINT_UTILITY,
"not used any longer", GIMP_PARAM_STATIC_STRINGS |
GIMP_PARAM_STATIC_STRINGS | GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_TRANSIENT_DOCKS,
"transient-docks",
NULL, NULL,
FALSE,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
GIMP_CONFIG_PROP_PATH (object_class, PROP_WEB_BROWSER,
"web-browser",
NULL, NULL,
GIMP_CONFIG_PATH_FILE,
"not used any longer",
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_IGNORE);
} }
static void static void

View File

@ -69,46 +69,53 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
object_class->get_property = gimp_plugin_config_get_property; object_class->get_property = gimp_plugin_config_get_property;
path = gimp_config_build_data_path ("fractalexplorer"); path = gimp_config_build_data_path ("fractalexplorer");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_PATH (object_class,
PROP_FRACTALEXPLORER_PATH, PROP_FRACTALEXPLORER_PATH,
"fractalexplorer-path", "Fractal Explorer path",
FRACTALEXPLORER_PATH_BLURB, "fractalexplorer-path",
GIMP_CONFIG_PATH_DIR_LIST, path, FRACTALEXPLORER_PATH_BLURB,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("gfig"); path = gimp_config_build_data_path ("gfig");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_PATH (object_class,
PROP_GFIG_PATH, PROP_GFIG_PATH,
"gfig-path", GFIG_PATH_BLURB, "gfig-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "GFig path",
GIMP_PARAM_STATIC_STRINGS); GFIG_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("gflare"); path = gimp_config_build_data_path ("gflare");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_PATH (object_class,
PROP_GFLARE_PATH, PROP_GFLARE_PATH,
"gflare-path", GFLARE_PATH_BLURB, "gflare-path",
GIMP_CONFIG_PATH_DIR_LIST, path, "GFlare path",
GIMP_PARAM_STATIC_STRINGS); GFLARE_PATH_BLURB,
GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("gimpressionist"); path = gimp_config_build_data_path ("gimpressionist");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_PATH (object_class,
PROP_GIMPRESSIONIST_PATH, PROP_GIMPRESSIONIST_PATH,
"gimpressionist-path", "gimpressionist-path",
GIMPRESSIONIST_PATH_BLURB, "GIMPressionist path",
GIMP_CONFIG_PATH_DIR_LIST, path, GIMPRESSIONIST_PATH_BLURB,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS);
g_free (path); g_free (path);
path = gimp_config_build_data_path ("scripts"); path = gimp_config_build_data_path ("scripts");
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, GIMP_CONFIG_PROP_PATH (object_class,
PROP_SCRIPT_FU_PATH, PROP_SCRIPT_FU_PATH,
"script-fu-path", "script-fu-path",
SCRIPT_FU_PATH_BLURB, "Script-Fu path",
GIMP_CONFIG_PATH_DIR_LIST, path, SCRIPT_FU_PATH_BLURB,
GIMP_PARAM_STATIC_STRINGS); GIMP_CONFIG_PATH_DIR_LIST, path,
GIMP_PARAM_STATIC_STRINGS);
g_free (path); g_free (path);
} }