mirror of https://github.com/GNOME/gimp.git
define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB.
2006-01-18 Michael Natterer <mitch@gimp.org> * app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include GIMP_PARAM_STATIC_STRINGS. * app/*/*.c: use them for all object properties so their strings are not copied.
This commit is contained in:
parent
6dfc1d8a86
commit
e1ceed5147
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-01-18 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/config/config-types.c: define GIMP_PARAM_STATIC_STRINGS
|
||||
which is G_PARAM_STATIC_NAME|NICK|BLURB. Also define
|
||||
GIMP_PARAM_READABLE, _WRITABLE and _READWRITE which include
|
||||
GIMP_PARAM_STATIC_STRINGS.
|
||||
|
||||
* app/*/*.c: use them for all object properties so their
|
||||
strings are not copied.
|
||||
|
||||
2006-01-17 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/dialogs/quit-dialog.c (quit_close_all_dialog_new):
|
||||
|
|
|
@ -26,6 +26,17 @@
|
|||
#include "libgimpconfig/gimpconfigtypes.h"
|
||||
|
||||
|
||||
#define GIMP_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | \
|
||||
G_PARAM_STATIC_NICK | \
|
||||
G_PARAM_STATIC_BLURB)
|
||||
#define GIMP_PARAM_READABLE (G_PARAM_READABLE | \
|
||||
GIMP_PARAM_STATIC_STRINGS)
|
||||
#define GIMP_PARAM_WRITABLE (G_PARAM_WRITABLE | \
|
||||
GIMP_PARAM_STATIC_STRINGS)
|
||||
#define GIMP_PARAM_READWRITE (G_PARAM_READWRITE | \
|
||||
GIMP_PARAM_STATIC_STRINGS)
|
||||
|
||||
|
||||
typedef struct _GimpBaseConfig GimpBaseConfig;
|
||||
typedef struct _GimpCoreConfig GimpCoreConfig;
|
||||
typedef struct _GimpDisplayConfig GimpDisplayConfig;
|
||||
|
|
|
@ -76,11 +76,13 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
|
|||
"temp-path", TEMP_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR,
|
||||
"${gimp_dir}" G_DIR_SEPARATOR_S "tmp",
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_SWAP_PATH,
|
||||
"swap-path", SWAP_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR,
|
||||
"${gimp_dir}",
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_STINGY_MEMORY_USE,
|
||||
"stingy-memory-use", NULL,
|
||||
|
@ -89,11 +91,12 @@ gimp_base_config_class_init (GimpBaseConfigClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_UINT (object_class, PROP_NUM_PROCESSORS,
|
||||
"num-processors", NUM_PROCESSORS_BLURB,
|
||||
1, GIMP_MAX_NUM_THREADS, 2,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_TILE_CACHE_SIZE,
|
||||
"tile-cache-size", TILE_CACHE_SIZE_BLURB,
|
||||
0, MIN (G_MAXULONG, GIMP_MAX_MEMSIZE),
|
||||
1 << 28, /* 256MB */
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_CONFIRM);
|
||||
}
|
||||
|
||||
|
|
|
@ -131,35 +131,40 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
|
|||
INTERPOLATION_TYPE_BLURB,
|
||||
GIMP_TYPE_INTERPOLATION_TYPE,
|
||||
GIMP_INTERPOLATION_LINEAR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
path = gimp_config_build_plug_in_path ("plug-ins");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PLUG_IN_PATH,
|
||||
"plug-in-path", PLUG_IN_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_plug_in_path ("modules");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_MODULE_PATH,
|
||||
"module-path", MODULE_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_plug_in_path ("interpreters");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_INTERPRETER_PATH,
|
||||
"interpreter-path", INTERPRETER_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_plug_in_path ("environ");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_ENVIRON_PATH,
|
||||
"environ-path", ENVIRON_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_data_path ("brushes");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_BRUSH_PATH,
|
||||
"brush-path", BRUSH_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_writable_path ("brushes");
|
||||
|
@ -167,12 +172,14 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
|
|||
"brush-path-writable",
|
||||
BRUSH_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");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PATTERN_PATH,
|
||||
"pattern-path", PATTERN_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_writable_path ("patterns");
|
||||
|
@ -180,12 +187,14 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
|
|||
"pattern-path-writable",
|
||||
PATTERN_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 ("palettes");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PALETTE_PATH,
|
||||
"palette-path", PALETTE_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_writable_path ("palettes");
|
||||
|
@ -193,12 +202,14 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
|
|||
"palette-path-writable",
|
||||
PALETTE_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 ("gradients");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_GRADIENT_PATH,
|
||||
"gradient-path", GRADIENT_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
g_free (path);
|
||||
path = gimp_config_build_writable_path ("gradients");
|
||||
|
@ -206,121 +217,133 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
|
|||
"gradient-path-writable",
|
||||
GRADIENT_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 ("fonts");
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_FONT_PATH,
|
||||
"font-path", FONT_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_CONFIRM);
|
||||
g_free (path);
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_FONT_PATH_WRITABLE,
|
||||
"font-path-writable", NULL,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, NULL,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_IGNORE);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_BRUSH,
|
||||
"default-brush", DEFAULT_BRUSH_BLURB,
|
||||
DEFAULT_BRUSH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PATTERN,
|
||||
"default-pattern", DEFAULT_PATTERN_BLURB,
|
||||
DEFAULT_PATTERN,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_PALETTE,
|
||||
"default-palette", DEFAULT_PALETTE_BLURB,
|
||||
DEFAULT_PALETTE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_GRADIENT,
|
||||
"default-gradient", DEFAULT_GRADIENT_BLURB,
|
||||
DEFAULT_GRADIENT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_DEFAULT_FONT,
|
||||
"default-font", DEFAULT_FONT_BLURB,
|
||||
DEFAULT_FONT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_BRUSH,
|
||||
"global-brush", GLOBAL_BRUSH_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_PATTERN,
|
||||
"global-pattern", GLOBAL_PATTERN_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_PALETTE,
|
||||
"global-palette", GLOBAL_PALETTE_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_GRADIENT,
|
||||
"global-gradient", GLOBAL_GRADIENT_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GLOBAL_FONT,
|
||||
"global-font", GLOBAL_FONT_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_IMAGE,
|
||||
"default-image", DEFAULT_IMAGE_BLURB,
|
||||
GIMP_TYPE_TEMPLATE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_AGGREGATE);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_DEFAULT_GRID,
|
||||
"default-grid", DEFAULT_GRID_BLURB,
|
||||
GIMP_TYPE_GRID,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_AGGREGATE);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_UNDO_LEVELS,
|
||||
"undo-levels", UNDO_LEVELS_BLURB,
|
||||
0, G_MAXINT, 5,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_CONFIRM);
|
||||
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_UNDO_SIZE,
|
||||
"undo-size", UNDO_SIZE_BLURB,
|
||||
0, GIMP_MAX_MEMSIZE, 1 << 24, /* 16MB */
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_CONFIRM);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_UNDO_PREVIEW_SIZE,
|
||||
"undo-preview-size", UNDO_PREVIEW_SIZE_BLURB,
|
||||
GIMP_TYPE_VIEW_SIZE,
|
||||
GIMP_VIEW_SIZE_LARGE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class,
|
||||
PROP_PLUGINRC_PATH,
|
||||
"pluginrc-path", PLUGINRC_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_FILE,
|
||||
"${gimp_dir}" G_DIR_SEPARATOR_S "pluginrc",
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_LAYER_PREVIEWS,
|
||||
"layer-previews", LAYER_PREVIEWS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_LAYER_PREVIEW_SIZE,
|
||||
"layer-preview-size", LAYER_PREVIEW_SIZE_BLURB,
|
||||
GIMP_TYPE_VIEW_SIZE,
|
||||
GIMP_VIEW_SIZE_MEDIUM,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_THUMBNAIL_SIZE,
|
||||
"thumbnail-size", THUMBNAIL_SIZE_BLURB,
|
||||
GIMP_TYPE_THUMBNAIL_SIZE,
|
||||
GIMP_THUMBNAIL_SIZE_NORMAL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_MEMSIZE (object_class, PROP_THUMBNAIL_FILESIZE_LIMIT,
|
||||
"thumbnail-filesize-limit",
|
||||
THUMBNAIL_FILESIZE_LIMIT_BLURB,
|
||||
0, GIMP_MAX_MEMSIZE, 1 << 22,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INSTALL_COLORMAP,
|
||||
"install-colormap", INSTALL_COLORMAP_BLURB,
|
||||
FALSE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MIN_COLORS,
|
||||
"min-colors", MIN_COLORS_BLURB,
|
||||
27, 256, 144,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_COLOR_MANAGEMENT,
|
||||
"color-management", COLOR_MANAGEMENT_BLURB,
|
||||
GIMP_TYPE_COLOR_CONFIG,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_AGGREGATE);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DOCUMENT_HISTORY,
|
||||
"save-document-history",
|
||||
SAVE_DOCUMENT_HISTORY_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -111,115 +111,117 @@ gimp_display_config_class_init (GimpDisplayConfigClass *klass)
|
|||
"transparency-size", TRANSPARENCY_SIZE_BLURB,
|
||||
GIMP_TYPE_CHECK_SIZE,
|
||||
GIMP_CHECK_SIZE_MEDIUM_CHECKS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TRANSPARENCY_TYPE,
|
||||
"transparency-type", TRANSPARENCY_TYPE_BLURB,
|
||||
GIMP_TYPE_CHECK_TYPE,
|
||||
GIMP_CHECK_TYPE_GRAY_CHECKS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SNAP_DISTANCE,
|
||||
"snap-distance", DEFAULT_SNAP_DISTANCE_BLURB,
|
||||
1, 255, 8,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MARCHING_ANTS_SPEED,
|
||||
"marching-ants-speed",
|
||||
MARCHING_ANTS_SPEED_BLURB,
|
||||
50, G_MAXINT, 300,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INITIAL_ZOOM_TO_FIT,
|
||||
"initial_zoom_to_fit",
|
||||
"initial-zoom-to-fit",
|
||||
INITIAL_ZOOM_TO_FIT_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PERFECT_MOUSE,
|
||||
"perfect-mouse", PERFECT_MOUSE_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CURSOR_UPDATING,
|
||||
"cursor-updating", CURSOR_UPDATING_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_BRUSH_OUTLINE,
|
||||
"show-brush-outline",
|
||||
SHOW_BRUSH_OUTLINE_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONFIRM_ON_CLOSE,
|
||||
"confirm-on-close", CONFIRM_ON_CLOSE_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_MONITOR_XRESOLUTION,
|
||||
"monitor-xresolution",
|
||||
MONITOR_XRESOLUTION_BLURB,
|
||||
72.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_MONITOR_YRESOLUTION,
|
||||
"monitor-yresolution",
|
||||
MONITOR_YRESOLUTION_BLURB,
|
||||
72.0,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
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,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -111,146 +111,152 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_DEFAULT_THRESHOLD,
|
||||
"default-threshold", DEFAULT_THRESHOLD_BLURB,
|
||||
0, 255, 15,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_TOOL_CHANGES_ACTIVE,
|
||||
"move-tool-changes-active",
|
||||
MOVE_TOOL_CHANGES_ACTIVE_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INFO_WINDOW_PER_DISPLAY,
|
||||
"info-window-per-display",
|
||||
NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_IGNORE);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRUST_DIRTY_FLAG,
|
||||
"trust-dirty-flag",
|
||||
TRUST_DIRTY_FLAG_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_DEVICE_STATUS,
|
||||
"save-device-status",
|
||||
SAVE_DEVICE_STATUS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_SESSION_INFO,
|
||||
"save-session-info",
|
||||
SAVE_SESSION_INFO_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_SESSION,
|
||||
"restore-session", RESTORE_SESSION_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_TOOL_OPTIONS,
|
||||
"save-tool-options",
|
||||
SAVE_TOOL_OPTIONS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TIPS,
|
||||
"show-tips", SHOW_TIPS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_TOOL_TIPS,
|
||||
"show-tool-tips", SHOW_TOOL_TIPS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TEAROFF_MENUS,
|
||||
"tearoff-menus", TEAROFF_MENUS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CAN_CHANGE_ACCELS,
|
||||
"can-change-accels", CAN_CHANGE_ACCELS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAVE_ACCELS,
|
||||
"save-accels", SAVE_ACCELS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_RESTORE_ACCELS,
|
||||
"restore-accels", RESTORE_ACCELS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MENU_MNEMONICS,
|
||||
"menu-mnemonics", MENU_MNEMONICS_BLURB,
|
||||
TRUE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
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 << 26,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_COLOR_AREA,
|
||||
"toolbox-color-area",
|
||||
TOOLBOX_COLOR_AREA_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_FOO_AREA,
|
||||
"toolbox-foo-area",
|
||||
TOOLBOX_FOO_AREA_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TOOLBOX_IMAGE_AREA,
|
||||
"toolbox-image-area",
|
||||
TOOLBOX_IMAGE_AREA_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
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,
|
||||
DEFAULT_THEME,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_HELP,
|
||||
"use-help", USE_HELP_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_HELP_BUTTON,
|
||||
"show-help-button", SHOW_HELP_BUTTON_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_HELP_LOCALES,
|
||||
"help-locales", HELP_LOCALES_BLURB,
|
||||
"",
|
||||
0);
|
||||
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_GIMP_HELP_BROWSER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_WEB_BROWSER,
|
||||
"web-browser", WEB_BROWSER_BLURB,
|
||||
GIMP_CONFIG_PATH_FILE,
|
||||
DEFAULT_WEB_BROWSER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_TOOLBOX_WINDOW_HINT,
|
||||
"toolbox-window-hint",
|
||||
TOOLBOX_WINDOW_HINT_BLURB,
|
||||
GIMP_TYPE_WINDOW_HINT,
|
||||
GIMP_WINDOW_HINT_NORMAL,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
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_NORMAL,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_RESTART);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_TRANSIENT_DOCKS,
|
||||
"transient-docks", TRANSIENT_DOCKS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CURSOR_FORMAT,
|
||||
"cursor-format", CURSOR_FORMAT_BLURB,
|
||||
GIMP_TYPE_CURSOR_FORMAT,
|
||||
GIMP_CURSOR_FORMAT_PIXBUF,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -75,7 +75,7 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
|
|||
"fractalexplorer-path",
|
||||
FRACTALEXPLORER_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_free (path);
|
||||
|
||||
path = gimp_config_build_data_path ("gfig");
|
||||
|
@ -83,7 +83,7 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
|
|||
PROP_GFIG_PATH,
|
||||
"gfig-path", GFIG_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_free (path);
|
||||
|
||||
path = gimp_config_build_data_path ("gflare");
|
||||
|
@ -91,7 +91,7 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
|
|||
PROP_GFLARE_PATH,
|
||||
"gflare-path", GFLARE_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_free (path);
|
||||
|
||||
path = gimp_config_build_data_path ("gimpressionist");
|
||||
|
@ -100,7 +100,7 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
|
|||
"gimpressionist-path",
|
||||
GIMPRESSIONIST_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_free (path);
|
||||
|
||||
path = gimp_config_build_data_path ("scripts");
|
||||
|
@ -109,7 +109,7 @@ gimp_plugin_config_class_init (GimpPluginConfigClass *klass)
|
|||
"script-fu-path",
|
||||
SCRIPT_FU_PATH_BLURB,
|
||||
GIMP_CONFIG_PATH_DIR_LIST, path,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_free (path);
|
||||
}
|
||||
|
||||
|
|
|
@ -98,33 +98,33 @@ gimp_brush_generated_class_init (GimpBrushGeneratedClass *klass)
|
|||
g_param_spec_enum ("shape", NULL, NULL,
|
||||
GIMP_TYPE_BRUSH_GENERATED_SHAPE,
|
||||
GIMP_BRUSH_GENERATED_CIRCLE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_RADIUS,
|
||||
g_param_spec_double ("radius", NULL, NULL,
|
||||
0.1, 1000.0, 5.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_SPIKES,
|
||||
g_param_spec_int ("spikes", NULL, NULL,
|
||||
2, 20, 2,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_HARDNESS,
|
||||
g_param_spec_double ("hardness", NULL, NULL,
|
||||
0.0, 1.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ASPECT_RATIO,
|
||||
g_param_spec_double ("aspect-ratio",
|
||||
NULL, NULL,
|
||||
1.0, 20.0, 1.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ANGLE,
|
||||
g_param_spec_double ("angle", NULL, NULL,
|
||||
0.0, 180.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -98,33 +98,33 @@ gimp_brush_generated_class_init (GimpBrushGeneratedClass *klass)
|
|||
g_param_spec_enum ("shape", NULL, NULL,
|
||||
GIMP_TYPE_BRUSH_GENERATED_SHAPE,
|
||||
GIMP_BRUSH_GENERATED_CIRCLE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_RADIUS,
|
||||
g_param_spec_double ("radius", NULL, NULL,
|
||||
0.1, 1000.0, 5.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_SPIKES,
|
||||
g_param_spec_int ("spikes", NULL, NULL,
|
||||
2, 20, 2,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_HARDNESS,
|
||||
g_param_spec_double ("hardness", NULL, NULL,
|
||||
0.0, 1.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ASPECT_RATIO,
|
||||
g_param_spec_double ("aspect-ratio",
|
||||
NULL, NULL,
|
||||
1.0, 20.0, 1.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ANGLE,
|
||||
g_param_spec_double ("angle", NULL, NULL,
|
||||
0.0, 180.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -98,33 +98,33 @@ gimp_brush_generated_class_init (GimpBrushGeneratedClass *klass)
|
|||
g_param_spec_enum ("shape", NULL, NULL,
|
||||
GIMP_TYPE_BRUSH_GENERATED_SHAPE,
|
||||
GIMP_BRUSH_GENERATED_CIRCLE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_RADIUS,
|
||||
g_param_spec_double ("radius", NULL, NULL,
|
||||
0.1, 1000.0, 5.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_SPIKES,
|
||||
g_param_spec_int ("spikes", NULL, NULL,
|
||||
2, 20, 2,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_HARDNESS,
|
||||
g_param_spec_double ("hardness", NULL, NULL,
|
||||
0.0, 1.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ASPECT_RATIO,
|
||||
g_param_spec_double ("aspect-ratio",
|
||||
NULL, NULL,
|
||||
1.0, 20.0, 1.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ANGLE,
|
||||
g_param_spec_double ("angle", NULL, NULL,
|
||||
0.0, 180.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -184,19 +184,19 @@ gimp_container_class_init (GimpContainerClass *klass)
|
|||
klass->get_child_by_index = NULL;
|
||||
klass->get_child_index = NULL;
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_CHILDREN_TYPE,
|
||||
g_param_spec_pointer ("children_type",
|
||||
g_object_class_install_property (object_class, PROP_CHILDREN_TYPE,
|
||||
g_param_spec_pointer ("children-type",
|
||||
NULL, NULL,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_POLICY,
|
||||
g_object_class_install_property (object_class, PROP_POLICY,
|
||||
g_param_spec_enum ("policy",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTAINER_POLICY,
|
||||
GIMP_CONTAINER_POLICY_STRONG,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -553,42 +553,42 @@ gimp_context_class_init (GimpContextClass *klass)
|
|||
g_param_spec_object ("gimp",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, GIMP_CONTEXT_PROP_IMAGE,
|
||||
g_param_spec_object (gimp_context_prop_names[GIMP_CONTEXT_PROP_IMAGE],
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_IMAGE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, GIMP_CONTEXT_PROP_DISPLAY,
|
||||
g_param_spec_object (gimp_context_prop_names[GIMP_CONTEXT_PROP_DISPLAY],
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_OBJECT,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_TOOL,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_TOOL], NULL,
|
||||
GIMP_TYPE_TOOL_INFO,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_PAINT_INFO,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_PAINT_INFO], NULL,
|
||||
GIMP_TYPE_PAINT_INFO,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, GIMP_CONTEXT_PROP_FOREGROUND,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_FOREGROUND],
|
||||
NULL,
|
||||
&black,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, GIMP_CONTEXT_PROP_BACKGROUND,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_BACKGROUND],
|
||||
NULL,
|
||||
&white,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, GIMP_CONTEXT_PROP_OPACITY,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_OPACITY],
|
||||
|
@ -596,62 +596,62 @@ gimp_context_class_init (GimpContextClass *klass)
|
|||
GIMP_OPACITY_TRANSPARENT,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, GIMP_CONTEXT_PROP_PAINT_MODE,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_PAINT_MODE],
|
||||
NULL,
|
||||
GIMP_TYPE_LAYER_MODE_EFFECTS,
|
||||
GIMP_NORMAL_MODE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_BRUSH,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_BRUSH],
|
||||
NULL,
|
||||
GIMP_TYPE_BRUSH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_PATTERN,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_PATTERN],
|
||||
NULL,
|
||||
GIMP_TYPE_PATTERN,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_GRADIENT,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_GRADIENT],
|
||||
NULL,
|
||||
GIMP_TYPE_GRADIENT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_PALETTE,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_PALETTE],
|
||||
NULL,
|
||||
GIMP_TYPE_PALETTE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, GIMP_CONTEXT_PROP_FONT,
|
||||
gimp_context_prop_names[GIMP_CONTEXT_PROP_FONT],
|
||||
NULL,
|
||||
GIMP_TYPE_FONT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
g_object_class_install_property (object_class, GIMP_CONTEXT_PROP_BUFFER,
|
||||
g_param_spec_object (gimp_context_prop_names[GIMP_CONTEXT_PROP_BUFFER],
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_BUFFER,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, GIMP_CONTEXT_PROP_IMAGEFILE,
|
||||
g_param_spec_object (gimp_context_prop_names[GIMP_CONTEXT_PROP_IMAGEFILE],
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_IMAGEFILE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, GIMP_CONTEXT_PROP_TEMPLATE,
|
||||
g_param_spec_object (gimp_context_prop_names[GIMP_CONTEXT_PROP_TEMPLATE],
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_TEMPLATE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -152,22 +152,22 @@ gimp_data_class_init (GimpDataClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_FILENAME,
|
||||
g_param_spec_string ("filename", NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_WRITABLE,
|
||||
g_param_spec_boolean ("writable", NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_WRITABLE,
|
||||
g_param_spec_boolean ("deletable", NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_MIME_TYPE,
|
||||
g_param_spec_string ("mime-type", NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -85,50 +85,50 @@ gimp_grid_class_init (GimpGridClass *klass)
|
|||
N_("Line style used for the grid."),
|
||||
GIMP_TYPE_GRID_STYLE,
|
||||
GIMP_GRID_INTERSECTIONS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_FGCOLOR,
|
||||
"fgcolor",
|
||||
N_("The foreground color of the grid."),
|
||||
&black,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_BGCOLOR,
|
||||
"bgcolor",
|
||||
N_("The background color of the grid; "
|
||||
"only used in double dashed line style."),
|
||||
&white,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_XSPACING,
|
||||
"xspacing",
|
||||
N_("Horizontal spacing of grid lines."),
|
||||
1.0, GIMP_MAX_IMAGE_SIZE, 32.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YSPACING,
|
||||
"yspacing",
|
||||
N_("Vertical spacing of grid lines."),
|
||||
1.0, GIMP_MAX_IMAGE_SIZE, 32.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_SPACING_UNIT,
|
||||
"spacing-unit", NULL,
|
||||
FALSE, FALSE, GIMP_UNIT_INCH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_XOFFSET,
|
||||
"xoffset",
|
||||
N_("Horizontal offset of the first grid "
|
||||
"line; this may be a negative number."),
|
||||
- GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YOFFSET,
|
||||
"yoffset",
|
||||
N_("Vertical offset of the first grid "
|
||||
"line; this may be a negative number."),
|
||||
- GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_OFFSET_UNIT,
|
||||
"offset-unit", NULL,
|
||||
FALSE, FALSE, GIMP_UNIT_INCH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -476,31 +476,31 @@ gimp_image_class_init (GimpImageClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_GIMP,
|
||||
g_param_spec_object ("gimp", NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_ID,
|
||||
g_param_spec_int ("id", NULL, NULL,
|
||||
0, G_MAXINT, 0,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_WIDTH,
|
||||
g_param_spec_int ("width", NULL, NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 1,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_HEIGHT,
|
||||
g_param_spec_int ("height", NULL, NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 1,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_BASE_TYPE,
|
||||
g_param_spec_enum ("base-type", NULL, NULL,
|
||||
GIMP_TYPE_IMAGE_BASE_TYPE,
|
||||
GIMP_RGB,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
gimp_image_color_hash_init ();
|
||||
|
|
|
@ -181,17 +181,17 @@ gimp_item_class_init (GimpItemClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_ID,
|
||||
g_param_spec_int ("id", NULL, NULL,
|
||||
0, G_MAXINT, 0,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_WIDTH,
|
||||
g_param_spec_int ("width", NULL, NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 1,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_HEIGHT,
|
||||
g_param_spec_int ("height", NULL, NULL,
|
||||
1, GIMP_MAX_IMAGE_SIZE, 1,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -70,7 +70,7 @@ gimp_item_undo_class_init (GimpItemUndoClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_ITEM,
|
||||
g_param_spec_object ("item", NULL, NULL,
|
||||
GIMP_TYPE_ITEM,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -265,19 +265,19 @@ gimp_layer_class_init (GimpLayerClass *klass)
|
|||
GIMP_OPACITY_TRANSPARENT,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_MODE,
|
||||
g_param_spec_enum ("mode", NULL, NULL,
|
||||
GIMP_TYPE_LAYER_MODE_EFFECTS,
|
||||
GIMP_NORMAL_MODE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_LOCK_ALPHA,
|
||||
g_param_spec_boolean ("lock-alpha",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -108,13 +108,13 @@ gimp_list_class_init (GimpListClass *klass)
|
|||
g_param_spec_boolean ("unique-names",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SORT_FUNC,
|
||||
g_param_spec_pointer ("sort-func",
|
||||
NULL, NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ gimp_object_class_init (GimpObjectClass *klass)
|
|||
g_param_spec_string ("name",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -130,14 +130,14 @@ gimp_pdb_progress_class_init (GimpPdbProgressClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_CONTEXT,
|
||||
g_param_spec_object ("context", NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_CALLBACK_NAME,
|
||||
g_param_spec_string ("callback-name",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -85,27 +85,28 @@ gimp_stroke_desc_class_init (GimpStrokeDescClass *klass)
|
|||
g_param_spec_object ("gimp",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_METHOD,
|
||||
"method", NULL,
|
||||
GIMP_TYPE_STROKE_METHOD,
|
||||
GIMP_STROKE_METHOD_LIBART,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_STROKE_OPTIONS,
|
||||
"stroke-options", NULL,
|
||||
GIMP_TYPE_STROKE_OPTIONS,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_AGGREGATE);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_PAINT_INFO,
|
||||
"paint-info", NULL,
|
||||
GIMP_TYPE_PAINT_INFO,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_PAINT_OPTIONS,
|
||||
"paint-options", NULL,
|
||||
GIMP_TYPE_PAINT_OPTIONS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -97,23 +97,23 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
|
|||
"style", NULL,
|
||||
GIMP_TYPE_STROKE_STYLE,
|
||||
GIMP_STROKE_STYLE_SOLID,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_WIDTH,
|
||||
"width", NULL,
|
||||
0.0, 2000.0, 6.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
|
||||
"unit", NULL,
|
||||
TRUE, FALSE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CAP_STYLE,
|
||||
"cap-style", NULL,
|
||||
GIMP_TYPE_CAP_STYLE, GIMP_CAP_BUTT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JOIN_STYLE,
|
||||
"join-style", NULL,
|
||||
GIMP_TYPE_JOIN_STYLE, GIMP_JOIN_MITER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_MITER_LIMIT,
|
||||
"miter-limit",
|
||||
_("Convert a mitered join to a bevelled "
|
||||
|
@ -121,24 +121,24 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
|
|||
"distance of more than miter-limit * "
|
||||
"line-width from the actual join point."),
|
||||
0.0, 100.0, 10.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
|
||||
"antialias", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_DASH_OFFSET,
|
||||
"dash-offset", NULL,
|
||||
0.0, 2000.0, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
array_spec = g_param_spec_double ("dash-length", NULL, NULL,
|
||||
0.0, 2000.0, 1.0, G_PARAM_READWRITE);
|
||||
0.0, 2000.0, 1.0, GIMP_PARAM_READWRITE);
|
||||
g_object_class_install_property (object_class, PROP_DASH_INFO,
|
||||
g_param_spec_value_array ("dash-info",
|
||||
NULL, NULL,
|
||||
array_spec,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_FLAGS));
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -106,56 +106,56 @@ gimp_template_class_init (GimpTemplateClass *klass)
|
|||
NULL,
|
||||
GIMP_MIN_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
DEFAULT_IMAGE_WIDTH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_HEIGHT, "height",
|
||||
NULL,
|
||||
GIMP_MIN_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
DEFAULT_IMAGE_HEIGHT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT, "unit",
|
||||
N_("The unit used for coordinate display "
|
||||
"when not in dot-for-dot mode."),
|
||||
TRUE, FALSE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_XRESOLUTION,
|
||||
"xresolution",
|
||||
N_("The horizontal image resolution."),
|
||||
72.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_YRESOLUTION,
|
||||
"yresolution",
|
||||
N_("The vertical image resolution."),
|
||||
72.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_RESOLUTION_UNIT,
|
||||
"resolution-unit",
|
||||
NULL,
|
||||
FALSE, FALSE, GIMP_UNIT_INCH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_IMAGE_TYPE,
|
||||
"image-type",
|
||||
NULL,
|
||||
GIMP_TYPE_IMAGE_BASE_TYPE, GIMP_RGB,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_TYPE,
|
||||
"fill-type",
|
||||
NULL,
|
||||
GIMP_TYPE_FILL_TYPE, GIMP_BACKGROUND_FILL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_COMMENT,
|
||||
"comment",
|
||||
NULL,
|
||||
NULL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_FILENAME,
|
||||
"filename",
|
||||
NULL,
|
||||
NULL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -75,7 +75,8 @@ gimp_tool_info_class_init (GimpToolInfoClass *klass)
|
|||
viewable_class->get_description = gimp_tool_info_get_description;
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VISIBLE, "visible",
|
||||
NULL, TRUE, 0);
|
||||
NULL, TRUE,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -66,7 +66,7 @@ gimp_tool_options_class_init (GimpToolOptionsClass *klass)
|
|||
g_param_spec_object ("tool-info",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_TOOL_INFO,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -147,14 +147,14 @@ gimp_undo_class_init (GimpUndoClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_IMAGE,
|
||||
g_param_spec_object ("image", NULL, NULL,
|
||||
GIMP_TYPE_IMAGE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_UNDO_TYPE,
|
||||
g_param_spec_enum ("undo-type", NULL, NULL,
|
||||
GIMP_TYPE_UNDO_TYPE,
|
||||
GIMP_UNDO_GROUP_NONE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_DIRTY_MASK,
|
||||
|
@ -162,28 +162,28 @@ gimp_undo_class_init (GimpUndoClass *klass)
|
|||
NULL, NULL,
|
||||
GIMP_TYPE_DIRTY_MASK,
|
||||
GIMP_DIRTY_NONE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_DATA,
|
||||
g_param_spec_pointer ("data", NULL, NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SIZE,
|
||||
g_param_spec_int64 ("size", NULL, NULL,
|
||||
0, G_MAXINT64, 0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_POP_FUNC,
|
||||
g_param_spec_pointer ("pop-func", NULL, NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_FREE_FUNC,
|
||||
g_param_spec_pointer ("free-func", NULL, NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -153,7 +153,8 @@ gimp_viewable_class_init (GimpViewableClass *klass)
|
|||
klass->get_description = gimp_viewable_real_get_description;
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_STOCK_ID, "stock-id",
|
||||
NULL, NULL, 0);
|
||||
NULL, NULL,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -109,20 +109,20 @@ gimp_display_class_init (GimpDisplayClass *klass)
|
|||
g_param_spec_int ("id",
|
||||
NULL, NULL,
|
||||
0, G_MAXINT, 0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_IMAGE,
|
||||
g_param_spec_object ("image",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_IMAGE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SHELL,
|
||||
g_param_spec_object ("shell",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_DISPLAY_SHELL,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -93,48 +93,48 @@ gimp_display_options_class_init (GimpDisplayOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
|
||||
"show-menubar", SHOW_MENUBAR_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
|
||||
"show-rulers", SHOW_RULERS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
|
||||
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
|
||||
"show-statusbar", SHOW_STATUSBAR_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
|
||||
"show-selection", SHOW_SELECTION_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
|
||||
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
|
||||
"show-guides", SHOW_GUIDES_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
|
||||
"show-grid", SHOW_GRID_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
|
||||
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE,
|
||||
"padding-mode", CANVAS_PADDING_MODE_BLURB,
|
||||
GIMP_TYPE_CANVAS_PADDING_MODE,
|
||||
GIMP_CANVAS_PADDING_MODE_DEFAULT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR,
|
||||
"padding-color", CANVAS_PADDING_COLOR_BLURB,
|
||||
&white,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -151,48 +151,48 @@ gimp_display_options_fullscreen_class_init (GimpDisplayOptionsFullscreenClass *k
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_MENUBAR,
|
||||
"show-menubar", SHOW_MENUBAR_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_RULERS,
|
||||
"show-rulers", SHOW_RULERS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SCROLLBARS,
|
||||
"show-scrollbars", SHOW_SCROLLBARS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_STATUSBAR,
|
||||
"show-statusbar", SHOW_STATUSBAR_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SELECTION,
|
||||
"show-selection", SHOW_SELECTION_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_LAYER_BOUNDARY,
|
||||
"show-layer-boundary", SHOW_LAYER_BOUNDARY_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GUIDES,
|
||||
"show-guides", SHOW_GUIDES_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_GRID,
|
||||
"show-grid", SHOW_GRID_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_SAMPLE_POINTS,
|
||||
"show-sample-points", SHOW_SAMPLE_POINTS_BLURB,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PADDING_MODE,
|
||||
"padding-mode", CANVAS_PADDING_MODE_BLURB,
|
||||
GIMP_TYPE_CANVAS_PADDING_MODE,
|
||||
GIMP_CANVAS_PADDING_MODE_CUSTOM,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_PADDING_COLOR,
|
||||
"padding-color", CANVAS_PADDING_COLOR_BLURB,
|
||||
&black,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -184,7 +184,7 @@ gimp_display_shell_class_init (GimpDisplayShellClass *klass)
|
|||
gimp_param_spec_unit ("unit", NULL, NULL,
|
||||
TRUE, FALSE,
|
||||
GIMP_UNIT_PIXEL,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
gtk_rc_parse_string (display_rc_style);
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ gimp_statusbar_class_init (GimpStatusbarClass *klass)
|
|||
_("Style of bevel around the statusbar text"),
|
||||
GTK_TYPE_SHADOW_TYPE,
|
||||
GTK_SHADOW_IN,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -64,11 +64,11 @@ gimp_airbrush_options_class_init (GimpAirbrushOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE,
|
||||
"rate", NULL,
|
||||
0.0, 150.0, AIRBRUSH_DEFAULT_RATE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PRESSURE,
|
||||
"pressure", NULL,
|
||||
0.0, 100.0, AIRBRUSH_DEFAULT_PRESSURE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -66,16 +66,16 @@ gimp_clone_options_class_init (GimpCloneOptionsClass *klass)
|
|||
"clone-type", NULL,
|
||||
GIMP_TYPE_CLONE_TYPE,
|
||||
CLONE_DEFAULT_TYPE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ALIGN_MODE,
|
||||
"align-mode", NULL,
|
||||
GIMP_TYPE_CLONE_ALIGN_MODE,
|
||||
CLONE_DEFAULT_ALIGN_MODE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
|
||||
"sample-merged", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -65,11 +65,11 @@ gimp_convolve_options_class_init (GimpConvolveOptionsClass *klass)
|
|||
"type", NULL,
|
||||
GIMP_TYPE_CONVOLVE_TYPE,
|
||||
DEFAULT_CONVOLVE_TYPE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE,
|
||||
"rate", NULL,
|
||||
0.0, 100.0, DEFAULT_CONVOLVE_RATE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -67,16 +67,16 @@ gimp_dodge_burn_options_class_init (GimpDodgeBurnOptionsClass *klass)
|
|||
"type", NULL,
|
||||
GIMP_TYPE_DODGE_BURN_TYPE,
|
||||
DODGE_BURN_DEFAULT_TYPE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
|
||||
"mode", NULL,
|
||||
GIMP_TYPE_TRANSFER_MODE,
|
||||
DODGE_BURN_DEFAULT_MODE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EXPOSURE,
|
||||
"exposure", NULL,
|
||||
0.0, 100.0, DODGE_BURN_DEFAULT_EXPOSURE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -62,7 +62,7 @@ gimp_eraser_options_class_init (GimpEraserOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTI_ERASE,
|
||||
"anti-erase", NULL,
|
||||
ERASER_DEFAULT_ANTI_ERASE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -72,38 +72,38 @@ gimp_ink_options_class_init (GimpInkOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SIZE,
|
||||
"size", NULL,
|
||||
0.0, 200.0, 16.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_TILT_ANGLE,
|
||||
"tilt-angle", NULL,
|
||||
-90.0, 90.0, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SIZE_SENSITIVITY,
|
||||
"size-sensitivity", NULL,
|
||||
0.0, 1.0, 1.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_VEL_SENSITIVITY,
|
||||
"vel-sensitivity", NULL,
|
||||
0.0, 1.0, 0.8,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_TILT_SENSITIVITY,
|
||||
"tilt-sensitivity", NULL,
|
||||
0.0, 1.0, 0.4,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BLOB_TYPE,
|
||||
"blob-type", NULL,
|
||||
GIMP_TYPE_INK_BLOB_TYPE,
|
||||
GIMP_INK_BLOB_TYPE_ELLIPSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BLOB_ASPECT,
|
||||
"blob-aspect", NULL,
|
||||
1.0, 10.0, 1.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BLOB_ANGLE,
|
||||
"blob-angle", NULL,
|
||||
-90.0, 90.0, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -124,125 +124,127 @@ gimp_paint_options_class_init (GimpPaintOptionsClass *klass)
|
|||
g_param_spec_object ("paint-info",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_PAINT_INFO,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_APPLICATION_MODE,
|
||||
"application-mode", NULL,
|
||||
GIMP_TYPE_PAINT_APPLICATION_MODE,
|
||||
DEFAULT_APPLICATION_MODE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HARD,
|
||||
"hard", NULL,
|
||||
DEFAULT_HARD,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_EXPANDED,
|
||||
"pressure-expanded", NULL,
|
||||
DEFAULT_PRESSURE_EXPANDED,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_OPACITY,
|
||||
"pressure-opacity", NULL,
|
||||
DEFAULT_PRESSURE_OPACITY,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_HARDNESS,
|
||||
"pressure-hardness", NULL,
|
||||
DEFAULT_PRESSURE_HARDNESS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_RATE,
|
||||
"pressure-rate", NULL,
|
||||
DEFAULT_PRESSURE_RATE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_SIZE,
|
||||
"pressure-size", NULL,
|
||||
DEFAULT_PRESSURE_SIZE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_COLOR,
|
||||
"pressure-color", NULL,
|
||||
DEFAULT_PRESSURE_COLOR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_INVERSE_SIZE,
|
||||
"pressure-inverse-size", NULL,
|
||||
DEFAULT_PRESSURE_INVERSE_SIZE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_FADE,
|
||||
"use-fade", NULL,
|
||||
DEFAULT_USE_FADE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FADE_LENGTH,
|
||||
"fade-length", NULL,
|
||||
0.0, 32767.0, DEFAULT_FADE_LENGTH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_FADE_UNIT,
|
||||
"fade-unit", NULL,
|
||||
TRUE, TRUE, DEFAULT_FADE_UNIT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_JITTER,
|
||||
"use-jitter", NULL,
|
||||
DEFAULT_USE_JITTER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_JITTER_AMOUNT,
|
||||
"jitter-amount", NULL,
|
||||
0.0, 50.0, DEFAULT_JITTER_AMOUNT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_GRADIENT,
|
||||
"use-gradient", NULL,
|
||||
DEFAULT_USE_GRADIENT, 0);
|
||||
DEFAULT_USE_GRADIENT,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_GRADIENT_REVERSE,
|
||||
"gradient-reverse", NULL,
|
||||
DEFAULT_GRADIENT_REVERSE, 0);
|
||||
DEFAULT_GRADIENT_REVERSE,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_REPEAT,
|
||||
"gradient-repeat", NULL,
|
||||
GIMP_TYPE_REPEAT_MODE,
|
||||
DEFAULT_GRADIENT_REPEAT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GRADIENT_LENGTH,
|
||||
"gradient-length", NULL,
|
||||
0.0, 32767.0, DEFAULT_GRADIENT_LENGTH,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_GRADIENT_UNIT,
|
||||
"gradient-unit", NULL,
|
||||
TRUE, TRUE, DEFAULT_GRADIENT_UNIT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BRUSH_VIEW_TYPE,
|
||||
"brush-view-type", NULL,
|
||||
GIMP_TYPE_VIEW_TYPE,
|
||||
GIMP_VIEW_TYPE_GRID,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_BRUSH_VIEW_SIZE,
|
||||
"brush-view-size", NULL,
|
||||
GIMP_VIEW_SIZE_TINY,
|
||||
GIMP_VIEWABLE_MAX_BUTTON_SIZE,
|
||||
GIMP_VIEW_SIZE_SMALL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PATTERN_VIEW_TYPE,
|
||||
"pattern-view-type", NULL,
|
||||
GIMP_TYPE_VIEW_TYPE,
|
||||
GIMP_VIEW_TYPE_GRID,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_PATTERN_VIEW_SIZE,
|
||||
"pattern-view-size", NULL,
|
||||
GIMP_VIEW_SIZE_TINY,
|
||||
GIMP_VIEWABLE_MAX_BUTTON_SIZE,
|
||||
GIMP_VIEW_SIZE_SMALL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_VIEW_TYPE,
|
||||
"gradient-view-type", NULL,
|
||||
GIMP_TYPE_VIEW_TYPE,
|
||||
GIMP_VIEW_TYPE_LIST,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRADIENT_VIEW_SIZE,
|
||||
"gradient-view-size", NULL,
|
||||
GIMP_VIEW_SIZE_TINY,
|
||||
GIMP_VIEWABLE_MAX_BUTTON_SIZE,
|
||||
GIMP_VIEW_SIZE_LARGE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -62,7 +62,7 @@ gimp_pencil_options_class_init (GimpPencilOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HARD,
|
||||
"hard", NULL,
|
||||
PENCIL_DEFAULT_HARD,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -62,7 +62,7 @@ gimp_smudge_options_class_init (GimpSmudgeOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_RATE,
|
||||
"rate", NULL,
|
||||
0.0, 100.0, SMUDGE_DEFAULT_RATE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -66,16 +66,16 @@ gimp_clone_options_class_init (GimpCloneOptionsClass *klass)
|
|||
"clone-type", NULL,
|
||||
GIMP_TYPE_CLONE_TYPE,
|
||||
CLONE_DEFAULT_TYPE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ALIGN_MODE,
|
||||
"align-mode", NULL,
|
||||
GIMP_TYPE_CLONE_ALIGN_MODE,
|
||||
CLONE_DEFAULT_ALIGN_MODE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
|
||||
"sample-merged", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -112,7 +112,7 @@ gimp_font_class_init (GimpFontClass *klass)
|
|||
g_param_spec_object ("pango-context",
|
||||
NULL, NULL,
|
||||
PANGO_TYPE_CONTEXT,
|
||||
G_PARAM_WRITABLE));
|
||||
GIMP_PARAM_WRITABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -110,15 +110,15 @@ gimp_text_class_init (GimpTextClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_TEXT,
|
||||
"text", NULL,
|
||||
NULL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_FONT,
|
||||
"font", NULL,
|
||||
"Sans",
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE,
|
||||
"font-size", NULL,
|
||||
0.0, 8192.0, 18.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
/*
|
||||
* We use the name "font-size-unit" for backward compatibility.
|
||||
* The unit is also used for other sizes in the text object.
|
||||
|
@ -126,87 +126,98 @@ gimp_text_class_init (GimpTextClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
|
||||
"font-size-unit", NULL,
|
||||
TRUE, FALSE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HINTING,
|
||||
"hinting", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTOHINT,
|
||||
"autohint", NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
|
||||
"antialias", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_KERNING,
|
||||
"kerning", NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE,
|
||||
"language", NULL,
|
||||
language,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BASE_DIR,
|
||||
"base-direction", NULL,
|
||||
GIMP_TYPE_TEXT_DIRECTION,
|
||||
GIMP_TEXT_DIRECTION_LTR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_RGB (object_class, PROP_COLOR,
|
||||
"color", NULL,
|
||||
&black,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_OUTLINE,
|
||||
"outline", NULL,
|
||||
GIMP_TYPE_TEXT_OUTLINE,
|
||||
GIMP_TEXT_OUTLINE_NONE,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JUSTIFICATION,
|
||||
"justify", NULL,
|
||||
GIMP_TYPE_TEXT_JUSTIFICATION,
|
||||
GIMP_TEXT_JUSTIFY_LEFT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_INDENTATION,
|
||||
"indent", NULL,
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LINE_SPACING,
|
||||
"line-spacing", NULL,
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LETTER_SPACING,
|
||||
"letter-spacing", NULL,
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BOX_MODE,
|
||||
"box-mode",
|
||||
NULL,
|
||||
GIMP_TYPE_TEXT_BOX_MODE,
|
||||
GIMP_TEXT_BOX_DYNAMIC,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BOX_WIDTH,
|
||||
"box-width", NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BOX_HEIGHT,
|
||||
"box-height", NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_BOX_UNIT,
|
||||
"box-unit", NULL,
|
||||
TRUE, FALSE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_MATRIX2 (object_class, PROP_TRANSFORMATION,
|
||||
"transformation", NULL,
|
||||
&identity,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_X,
|
||||
"offset-x", NULL,
|
||||
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_Y,
|
||||
"offset-y", NULL,
|
||||
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
|
||||
/* border does only exist to implement the old text API */
|
||||
|
@ -214,7 +225,7 @@ gimp_text_class_init (GimpTextClass *klass)
|
|||
g_param_spec_int ("border", NULL, NULL,
|
||||
0, GIMP_MAX_IMAGE_SIZE, 0,
|
||||
G_PARAM_CONSTRUCT |
|
||||
G_PARAM_WRITABLE));
|
||||
GIMP_PARAM_WRITABLE));
|
||||
|
||||
g_free (language);
|
||||
}
|
||||
|
|
|
@ -150,11 +150,11 @@ gimp_text_layer_class_init (GimpTextLayerClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTO_RENAME,
|
||||
"auto-rename", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MODIFIED,
|
||||
"modified", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -86,7 +86,7 @@ gimp_text_undo_class_init (GimpTextUndoClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_PARAM,
|
||||
g_param_spec_param ("param", NULL, NULL,
|
||||
G_TYPE_PARAM,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ gimp_align_options_class_init (GimpAlignOptionsClass *klass)
|
|||
"align-type", NULL,
|
||||
GIMP_TYPE_TRANSFORM_TYPE,
|
||||
GIMP_TRANSFORM_TYPE_LAYER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -78,35 +78,35 @@ gimp_blend_options_class_init (GimpBlendOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET,
|
||||
"offset", NULL,
|
||||
0.0, 100.0, 0.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_TYPE,
|
||||
"gradient-type", NULL,
|
||||
GIMP_TYPE_GRADIENT_TYPE,
|
||||
GIMP_GRADIENT_LINEAR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRADIENT_REPEAT,
|
||||
"gradient-repeat", NULL,
|
||||
GIMP_TYPE_REPEAT_MODE,
|
||||
GIMP_REPEAT_NONE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SUPERSAMPLE,
|
||||
"supersample", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SUPERSAMPLE_DEPTH,
|
||||
"supersample-depth", NULL,
|
||||
0, 6, 3,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SUPERSAMPLE_THRESHOLD,
|
||||
"supersample-threshold", NULL,
|
||||
0.0, 4.0, 0.2,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DITHER,
|
||||
"dither", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -89,28 +89,28 @@ gimp_bucket_fill_options_class_init (GimpBucketFillOptionsClass *klass)
|
|||
"fill-mode", NULL,
|
||||
GIMP_TYPE_BUCKET_FILL_MODE,
|
||||
GIMP_FG_BUCKET_FILL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_SELECTION,
|
||||
"fill-selection", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_TRANSPARENT,
|
||||
"fill-transparent",
|
||||
N_("Allow completely transparent regions "
|
||||
"to be filled"),
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
|
||||
"sample-merged",
|
||||
N_("Base filled area on all visible "
|
||||
"layers"),
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD,
|
||||
"threshold",
|
||||
N_("Maximum color difference"),
|
||||
0.0, 255.0, 15.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -66,15 +66,15 @@ gimp_color_options_class_init (GimpColorOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
|
||||
"sample-merged", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_AVERAGE,
|
||||
"sample-average", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_AVERAGE_RADIUS,
|
||||
"average-radius", NULL,
|
||||
1.0, 300.0, 3.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -68,20 +68,20 @@ gimp_color_picker_options_class_init (GimpColorPickerOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_AVERAGE,
|
||||
"sample-average", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PICK_MODE,
|
||||
"pick-mode", NULL,
|
||||
GIMP_TYPE_COLOR_PICK_MODE,
|
||||
GIMP_COLOR_PICK_MODE_FOREGROUND,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ADD_TO_PALETTE,
|
||||
"add-to-palette", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_INFO_WINDOW,
|
||||
"use-info-window", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -83,12 +83,12 @@ gimp_crop_options_class_init (GimpCropOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_LAYER_ONLY,
|
||||
"layer-only", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CROP_MODE,
|
||||
"crop-mode", NULL,
|
||||
GIMP_TYPE_CROP_MODE,
|
||||
GIMP_CROP_MODE_CROP,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
gimp_rectangle_options_install_properties (object_class);
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ gimp_flip_options_class_init (GimpFlipOptionsClass *klass)
|
|||
"flip-type", NULL,
|
||||
GIMP_TYPE_ORIENTATION_TYPE,
|
||||
GIMP_ORIENTATION_HORIZONTAL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -75,23 +75,23 @@ gimp_foreground_select_options_class_init (GimpForegroundSelectOptionsClass *kla
|
|||
"contiguous",
|
||||
_("Select a single contiguous area"),
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BACKGROUND,
|
||||
"background", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_STROKE_WIDTH,
|
||||
"stroke-width",
|
||||
_("Size of the brush used for refinements"),
|
||||
1, 80, 18,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_SMOOTHNESS,
|
||||
"smoothness",
|
||||
_("Smaller values give a more accurate "
|
||||
"selection border but may introduce holes "
|
||||
"in the selection"),
|
||||
0, 8, SIOX_DEFAULT_SMOOTHNESS,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_EXPANDED,
|
||||
"expanded", NULL,
|
||||
FALSE,
|
||||
|
@ -100,17 +100,17 @@ gimp_foreground_select_options_class_init (GimpForegroundSelectOptionsClass *kla
|
|||
"sensitivity-l",
|
||||
_("Sensitivity for brightness component"),
|
||||
0.0, 10.0, SIOX_DEFAULT_SENSITIVITY_L,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SENSITIVITY_A,
|
||||
"sensitivity-a",
|
||||
_("Sensitivity for red/green component"),
|
||||
0.0, 10.0, SIOX_DEFAULT_SENSITIVITY_A,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SENSITIVITY_B,
|
||||
"sensitivity-b",
|
||||
_("Sensitivity for yellow/blue component"),
|
||||
0.0, 10.0, SIOX_DEFAULT_SENSITIVITY_B,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -68,7 +68,7 @@ gimp_histogram_options_class_init (GimpHistogramOptionsClass *klass)
|
|||
"histogram-scale", NULL,
|
||||
GIMP_TYPE_HISTOGRAM_SCALE,
|
||||
GIMP_HISTOGRAM_SCALE_LINEAR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -64,12 +64,12 @@ gimp_image_map_options_class_init (GimpImageMapOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PREVIEW,
|
||||
"preview", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
g_object_class_install_property (object_class, PROP_SETTINGS,
|
||||
g_param_spec_string ("settings",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -79,16 +79,16 @@ gimp_magnify_options_class_init (GimpMagnifyOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTO_RESIZE,
|
||||
"auto-resize", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ZOOM_TYPE,
|
||||
"zoom-type", NULL,
|
||||
GIMP_TYPE_ZOOM_TYPE,
|
||||
GIMP_ZOOM_IN,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD,
|
||||
"threshold", NULL,
|
||||
1.0, 15.0, 8.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -68,7 +68,7 @@ gimp_measure_options_class_init (GimpMeasureOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_INFO_WINDOW,
|
||||
"use-info-window", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -68,11 +68,11 @@ gimp_move_options_class_init (GimpMoveOptionsClass *klass)
|
|||
"move-type", NULL,
|
||||
GIMP_TYPE_TRANSFORM_TYPE,
|
||||
GIMP_TRANSFORM_TYPE_LAYER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_MOVE_CURRENT,
|
||||
"move-current", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -93,71 +93,77 @@ gimp_rectangle_options_iface_base_init (GimpRectangleOptionsInterface *options_i
|
|||
if (! initialized)
|
||||
{
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("highlight",
|
||||
NULL, NULL,
|
||||
TRUE,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_boolean ("highlight",
|
||||
NULL, NULL,
|
||||
TRUE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("new-fixed-width",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_boolean ("new-fixed-width",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("width",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_double ("width",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("new-fixed-height",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("height",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_boolean ("new-fixed-height",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("fixed-aspect",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("aspect",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_double ("height",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("fixed-center",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("center-x",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("center-y",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_boolean ("fixed-aspect",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
gimp_param_spec_unit ("unit",
|
||||
NULL, NULL,
|
||||
TRUE, TRUE,
|
||||
GIMP_UNIT_PIXEL,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_double ("aspect",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_boolean ("fixed-center",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("center-x",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
g_param_spec_double ("center-y",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (options_iface,
|
||||
gimp_param_spec_unit ("unit",
|
||||
NULL, NULL,
|
||||
TRUE, TRUE,
|
||||
GIMP_UNIT_PIXEL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
initialized = TRUE;
|
||||
}
|
||||
|
|
|
@ -148,149 +148,184 @@ gimp_rectangle_tool_iface_base_init (GimpRectangleToolInterface *tool_iface)
|
|||
if (! initialized)
|
||||
{
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_object ("controls",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_object ("dimensions-entry",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_WIDGET,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_object ("controls",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_WIDGET,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("startx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("starty",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_object ("dimensions-entry",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_WIDGET,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("lastx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("lasty",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("startx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("pressx",
|
||||
NULL, NULL,
|
||||
0, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("pressy",
|
||||
NULL, NULL,
|
||||
0, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("starty",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("x1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("y1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("x2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("y2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("lastx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_uint ("function",
|
||||
NULL, NULL,
|
||||
RECT_CREATING, RECT_EXECUTING,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("lasty",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dx1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dy1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dx2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dy2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("pressx",
|
||||
NULL, NULL,
|
||||
0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dcw",
|
||||
NULL, NULL,
|
||||
0, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dch",
|
||||
NULL, NULL,
|
||||
0, GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("pressy",
|
||||
NULL, NULL,
|
||||
0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("origx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("x1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("origy",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("y1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("sizew",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("x2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("sizeh",
|
||||
NULL, NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
G_PARAM_READWRITE));
|
||||
g_param_spec_int ("y2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_uint ("function",
|
||||
NULL, NULL,
|
||||
RECT_CREATING,
|
||||
RECT_EXECUTING,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dx1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dy1",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dx2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dy2",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dcw",
|
||||
NULL, NULL,
|
||||
0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_int ("dch",
|
||||
NULL, NULL,
|
||||
0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("origx",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("origy",
|
||||
NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("sizew",
|
||||
NULL, NULL,
|
||||
0.0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (tool_iface,
|
||||
g_param_spec_double ("sizeh",
|
||||
NULL, NULL,
|
||||
0.0,
|
||||
GIMP_MAX_IMAGE_SIZE,
|
||||
0.0,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
initialized = TRUE;
|
||||
}
|
||||
|
|
|
@ -102,71 +102,71 @@ gimp_selection_options_class_init (GimpSelectionOptionsClass *klass)
|
|||
"operation", NULL,
|
||||
GIMP_TYPE_CHANNEL_OPS,
|
||||
GIMP_CHANNEL_OP_REPLACE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
|
||||
"antialias",
|
||||
N_("Smooth edges"),
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FEATHER,
|
||||
"feather", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FEATHER_RADIUS,
|
||||
"feather-radius", NULL,
|
||||
0.0, 100.0, 10.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SELECT_TRANSPARENT,
|
||||
"select-transparent",
|
||||
N_("Allow completely transparent regions "
|
||||
"to be selected"),
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
|
||||
"sample-merged",
|
||||
N_("Base selection on all visible layers"),
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD,
|
||||
"threshold",
|
||||
N_("Maximum color difference"),
|
||||
0.0, 255.0, 15.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTO_SHRINK,
|
||||
"auto-shrink", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHRINK_MERGED,
|
||||
"shrink-merged",
|
||||
N_("Use all visible layers when shrinking "
|
||||
"the selection"),
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FIXED_MODE,
|
||||
"fixed-mode", NULL,
|
||||
GIMP_TYPE_RECT_SELECT_MODE,
|
||||
GIMP_RECT_SELECT_MODE_FREE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FIXED_WIDTH,
|
||||
"fixed-width", NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE, 1.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FIXED_HEIGHT,
|
||||
"fixed-height", NULL,
|
||||
0.0, GIMP_MAX_IMAGE_SIZE, 1.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_FIXED_UNIT,
|
||||
"fixed-unit", NULL,
|
||||
TRUE, TRUE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INTERACTIVE,
|
||||
"interactive", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -106,70 +106,73 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
|
||||
"font-size-unit", NULL,
|
||||
TRUE, FALSE, GIMP_UNIT_PIXEL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE,
|
||||
"font-size", NULL,
|
||||
0.0, 8192.0, 18.0,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_HINTING,
|
||||
"hinting",
|
||||
N_("Hinting alters the font outline to "
|
||||
"produce a crisp bitmap at small "
|
||||
"sizes"),
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTOHINT,
|
||||
"autohint",
|
||||
N_("If available, hints from the font are "
|
||||
"used but you may prefer to always use "
|
||||
"the automatic hinter"),
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
|
||||
"antialias", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE,
|
||||
"language", NULL,
|
||||
(const gchar *) gtk_get_default_language (),
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BASE_DIR,
|
||||
"base-direction", NULL,
|
||||
GIMP_TYPE_TEXT_DIRECTION,
|
||||
GIMP_TEXT_DIRECTION_LTR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JUSTIFICATION,
|
||||
"justify", NULL,
|
||||
GIMP_TYPE_TEXT_JUSTIFICATION,
|
||||
GIMP_TEXT_JUSTIFY_LEFT,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_INDENTATION,
|
||||
"indent",
|
||||
N_("Indentation of the first line"),
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LINE_SPACING,
|
||||
"line-spacing",
|
||||
N_("Adjust line spacing"),
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LETTER_SPACING,
|
||||
"letter-spacing",
|
||||
N_("Adjust letter spacing"),
|
||||
-8192.0, 8192.0, 0.0,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_DEFAULTS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FONT_VIEW_TYPE,
|
||||
"font-view-type", NULL,
|
||||
GIMP_TYPE_VIEW_TYPE,
|
||||
GIMP_VIEW_TYPE_LIST,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_FONT_VIEW_SIZE,
|
||||
"font-view-size", NULL,
|
||||
GIMP_VIEW_SIZE_TINY,
|
||||
GIMP_VIEWABLE_MAX_BUTTON_SIZE,
|
||||
GIMP_VIEW_SIZE_SMALL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -119,7 +119,7 @@ gimp_tool_class_init (GimpToolClass *klass)
|
|||
g_param_spec_object ("tool-info",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_TOOL_INFO,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
}
|
||||
|
|
|
@ -100,62 +100,62 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
|
|||
"type", NULL,
|
||||
GIMP_TYPE_TRANSFORM_TYPE,
|
||||
GIMP_TRANSFORM_TYPE_LAYER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DIRECTION,
|
||||
"direction", NULL,
|
||||
GIMP_TYPE_TRANSFORM_DIRECTION,
|
||||
GIMP_TRANSFORM_FORWARD,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION,
|
||||
"interpolation", NULL,
|
||||
GIMP_TYPE_INTERPOLATION_TYPE,
|
||||
GIMP_INTERPOLATION_LINEAR,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SUPERSAMPLE,
|
||||
"supersample", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
#if 0
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_RECURSION_LEVEL,
|
||||
"recursion-level", NULL,
|
||||
1, 5, 3,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
#endif
|
||||
|
||||
g_object_class_install_property (object_class, PROP_RECURSION_LEVEL,
|
||||
g_param_spec_int ("recursion-level",
|
||||
NULL, NULL,
|
||||
1, 5, 3,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CLIP,
|
||||
"clip", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PREVIEW_TYPE,
|
||||
"preview-type", NULL,
|
||||
GIMP_TYPE_TRANSFORM_PREVIEW_TYPE,
|
||||
GIMP_TRANSFORM_PREVIEW_TYPE_IMAGE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRID_TYPE,
|
||||
"grid-type", NULL,
|
||||
GIMP_TYPE_TRANSFORM_GRID_TYPE,
|
||||
GIMP_TRANSFORM_GRID_TYPE_N_LINES,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRID_SIZE,
|
||||
"grid-size", NULL,
|
||||
1, 128, 15,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_1,
|
||||
"constrain-1", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_2,
|
||||
"constrain-2", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -72,13 +72,13 @@ gimp_vector_options_class_init (GimpVectorOptionsClass *klass)
|
|||
"vectors-edit-mode", NULL,
|
||||
GIMP_TYPE_VECTOR_MODE,
|
||||
GIMP_VECTOR_MODE_DESIGN,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_VECTORS_POLYGONAL,
|
||||
"vectors-polygonal",
|
||||
N_("Restrict editing to polygons"),
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -159,9 +159,7 @@ gimp_stroke_class_init (GimpStrokeClass *klass)
|
|||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GimpObjectClass *gimp_object_class = GIMP_OBJECT_CLASS (klass);
|
||||
GParamSpec *anchor_param_spec;
|
||||
GParamSpec *control_points_param_spec;
|
||||
GParamSpec *close_param_spec;
|
||||
GParamSpec *param_spec;
|
||||
|
||||
object_class->finalize = gimp_stroke_finalize;
|
||||
object_class->get_property = gimp_stroke_get_property;
|
||||
|
@ -213,38 +211,32 @@ gimp_stroke_class_init (GimpStrokeClass *klass)
|
|||
klass->get_draw_lines = gimp_stroke_real_get_draw_lines;
|
||||
klass->control_points_get = gimp_stroke_real_control_points_get;
|
||||
|
||||
anchor_param_spec = g_param_spec_boxed ("gimp-anchor",
|
||||
"Gimp Anchor",
|
||||
"The control points of a Stroke",
|
||||
GIMP_TYPE_ANCHOR,
|
||||
G_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY);
|
||||
param_spec = g_param_spec_boxed ("gimp-anchor",
|
||||
"Gimp Anchor",
|
||||
"The control points of a Stroke",
|
||||
GIMP_TYPE_ANCHOR,
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY);
|
||||
g_object_class_install_property (object_class, PROP_CONTROL_POINTS,
|
||||
g_param_spec_value_array ("control-points",
|
||||
"Control Points",
|
||||
"This is an ValueArray "
|
||||
"with the initial "
|
||||
"control points of "
|
||||
"the new Stroke",
|
||||
param_spec,
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
control_points_param_spec = g_param_spec_value_array ("control-points",
|
||||
"Control Points",
|
||||
"This is an ValueArray "
|
||||
"with the initial "
|
||||
"control points of "
|
||||
"the new Stroke",
|
||||
anchor_param_spec,
|
||||
G_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY);
|
||||
|
||||
close_param_spec = g_param_spec_boolean ("closed",
|
||||
"Close Flag",
|
||||
"this flag indicates, if the "
|
||||
"stroke is closed or not",
|
||||
FALSE,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_CONTROL_POINTS,
|
||||
control_points_param_spec);
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_CLOSED,
|
||||
close_param_spec);
|
||||
g_object_class_install_property (object_class, PROP_CLOSED,
|
||||
g_param_spec_boolean ("closed",
|
||||
"Close Flag",
|
||||
"this flag indicates "
|
||||
"whether the stroke "
|
||||
"is closed or not",
|
||||
FALSE,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -86,13 +86,13 @@ gimp_action_class_init (GimpActionClass *klass)
|
|||
gimp_param_spec_rgb ("color",
|
||||
NULL, NULL,
|
||||
&black,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_VIEWABLE,
|
||||
g_param_spec_object ("viewable",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_VIEWABLE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -85,28 +85,28 @@ gimp_action_group_class_init (GimpActionGroupClass *klass)
|
|||
g_param_spec_object ("gimp",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_LABEL,
|
||||
g_param_spec_string ("label",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_STOCK_ID,
|
||||
g_param_spec_string ("stock-id",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_MNEMONICS,
|
||||
g_param_spec_boolean ("mnemonics",
|
||||
NULL, NULL,
|
||||
TRUE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
klass->groups = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
|
|
|
@ -86,19 +86,19 @@ gimp_blob_editor_class_init (GimpBlobEditorClass *klass)
|
|||
NULL, NULL,
|
||||
GIMP_TYPE_INK_BLOB_TYPE,
|
||||
GIMP_INK_BLOB_TYPE_ELLIPSE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ASPECT,
|
||||
g_param_spec_double ("blob-aspect",
|
||||
NULL, NULL,
|
||||
1.0, 10.0, 1.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ANGLE,
|
||||
g_param_spec_double ("blob-angle",
|
||||
NULL, NULL,
|
||||
-90.0, 90.0, 0.0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -101,20 +101,20 @@ gimp_brush_select_class_init (GimpBrushSelectClass *klass)
|
|||
GIMP_OPACITY_TRANSPARENT,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
GIMP_OPACITY_OPAQUE,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_PAINT_MODE,
|
||||
g_param_spec_enum ("paint-mode", NULL, NULL,
|
||||
GIMP_TYPE_LAYER_MODE_EFFECTS,
|
||||
GIMP_NORMAL_MODE,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SPACING,
|
||||
g_param_spec_int ("spacing", NULL, NULL,
|
||||
-G_MAXINT, 1000, -1,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -116,14 +116,14 @@ gimp_cell_renderer_accel_class_init (GimpCellRendererAccelClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_ACCEL_KEY,
|
||||
g_param_spec_uint ("accel-key", NULL, NULL,
|
||||
0, G_MAXINT, 0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_ACCEL_MASK,
|
||||
g_param_spec_flags ("accel-mask", NULL, NULL,
|
||||
GDK_TYPE_MODIFIER_TYPE,
|
||||
0,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ gimp_cell_renderer_dashes_class_init (GimpCellRendererDashesClass *klass)
|
|||
|
||||
g_object_class_install_property (object_class, PROP_PATTERN,
|
||||
g_param_spec_pointer ("pattern", NULL, NULL,
|
||||
G_PARAM_WRITABLE));
|
||||
GIMP_PARAM_WRITABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -113,12 +113,11 @@ gimp_cell_renderer_viewable_class_init (GimpCellRendererViewableClass *klass)
|
|||
|
||||
klass->clicked = NULL;
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_RENDERER,
|
||||
g_object_class_install_property (object_class, PROP_RENDERER,
|
||||
g_param_spec_object ("renderer",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_VIEW_RENDERER,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -72,20 +72,20 @@ gimp_color_bar_class_init (GimpColorBarClass *klass)
|
|||
NULL, NULL,
|
||||
GTK_TYPE_ORIENTATION,
|
||||
GTK_ORIENTATION_HORIZONTAL,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
g_object_class_install_property (object_class, PROP_COLOR,
|
||||
gimp_param_spec_rgb ("color",
|
||||
NULL, NULL,
|
||||
&white,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
g_object_class_install_property (object_class, PROP_ORIENTATION,
|
||||
g_param_spec_enum ("histogram-channel",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_HISTOGRAM_CHANNEL,
|
||||
GIMP_HISTOGRAM_VALUE,
|
||||
G_PARAM_WRITABLE));
|
||||
GIMP_PARAM_WRITABLE));
|
||||
|
||||
widget_class->expose_event = gimp_color_bar_expose;
|
||||
}
|
||||
|
|
|
@ -120,7 +120,7 @@ gimp_color_editor_class_init (GimpColorEditorClass* klass)
|
|||
g_param_spec_object ("context",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -75,25 +75,25 @@ gimp_color_frame_class_init (GimpColorFrameClass *klass)
|
|||
NULL, NULL,
|
||||
GIMP_TYPE_COLOR_FRAME_MODE,
|
||||
GIMP_COLOR_FRAME_MODE_PIXEL,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_HAS_NUMBER,
|
||||
g_param_spec_boolean ("has-number",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_NUMBER,
|
||||
g_param_spec_int ("number",
|
||||
NULL, NULL,
|
||||
0, 256, 0,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_HAS_COLOR_AREA,
|
||||
g_param_spec_boolean ("has-color-area",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -202,34 +202,35 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
|
|||
g_param_spec_object ("container",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTAINER,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (view_iface,
|
||||
g_param_spec_object ("context",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (view_iface,
|
||||
g_param_spec_boolean ("reorderable",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_interface_install_property (view_iface,
|
||||
g_param_spec_int ("view-size",
|
||||
NULL, NULL,
|
||||
1, GIMP_VIEWABLE_MAX_PREVIEW_SIZE,
|
||||
GIMP_VIEW_SIZE_MEDIUM,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_interface_install_property (view_iface,
|
||||
g_param_spec_int ("view-border-width",
|
||||
NULL, NULL,
|
||||
0, GIMP_VIEW_MAX_BORDER_WIDTH,
|
||||
0,
|
||||
GIMP_VIEW_MAX_BORDER_WIDTH,
|
||||
1,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ gimp_controller_editor_class_init (GimpControllerEditorClass *klass)
|
|||
g_param_spec_object ("controller-info",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTROLLER_INFO,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -109,18 +109,18 @@ gimp_controller_info_class_init (GimpControllerInfoClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ENABLED,
|
||||
"enabled", NULL,
|
||||
TRUE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_DEBUG_EVENTS,
|
||||
"debug-events", NULL,
|
||||
FALSE,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_CONTROLLER,
|
||||
"controller", NULL,
|
||||
GIMP_TYPE_CONTROLLER,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
GIMP_CONFIG_INSTALL_PROP_POINTER (object_class, PROP_MAPPING,
|
||||
"mapping", NULL,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
info_signals[EVENT_MAPPED] =
|
||||
g_signal_new ("event-mapped",
|
||||
|
|
|
@ -133,7 +133,7 @@ gimp_controller_list_class_init (GimpControllerListClass *klass)
|
|||
g_param_spec_object ("gimp",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ gimp_cursor_view_class_init (GimpCursorViewClass* klass)
|
|||
g_param_spec_boolean ("sample-merged",
|
||||
NULL, NULL,
|
||||
TRUE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -103,14 +103,14 @@ gimp_dash_editor_class_init (GimpDashEditorClass *klass)
|
|||
g_param_spec_object ("stroke-options",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_STROKE_OPTIONS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_N_SEGMENTS,
|
||||
g_param_spec_int ("n-segments",
|
||||
NULL, NULL,
|
||||
2, 120, DEFAULT_N_SEGMENTS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_LENGTH,
|
||||
|
@ -118,7 +118,7 @@ gimp_dash_editor_class_init (GimpDashEditorClass *klass)
|
|||
NULL, NULL,
|
||||
0.0, 2000.0,
|
||||
0.5 * DEFAULT_N_SEGMENTS,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -120,14 +120,14 @@ gimp_data_editor_class_init (GimpDataEditorClass *klass)
|
|||
g_param_spec_object ("data-factory",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_DATA_FACTORY,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_DATA,
|
||||
g_param_spec_object ("data",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_DATA,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -79,7 +79,7 @@ static void
|
|||
gimp_device_info_class_init (GimpDeviceInfoClass *klass)
|
||||
{
|
||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||
GParamSpec *array_spec;
|
||||
GParamSpec *param_spec;
|
||||
|
||||
device_info_signals[CHANGED] =
|
||||
g_signal_new ("changed",
|
||||
|
@ -98,26 +98,30 @@ gimp_device_info_class_init (GimpDeviceInfoClass *klass)
|
|||
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE, "mode", NULL,
|
||||
GDK_TYPE_INPUT_MODE,
|
||||
GDK_MODE_DISABLED,
|
||||
0);
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
array_spec = g_param_spec_value_array ("axes",
|
||||
NULL, NULL,
|
||||
g_param_spec_enum ("axis",
|
||||
NULL, NULL,
|
||||
GDK_TYPE_AXIS_USE,
|
||||
GDK_AXIS_IGNORE,
|
||||
G_PARAM_READWRITE),
|
||||
GIMP_CONFIG_PARAM_FLAGS);
|
||||
g_object_class_install_property (object_class, PROP_AXES, array_spec);
|
||||
param_spec = g_param_spec_enum ("axis",
|
||||
NULL, NULL,
|
||||
GDK_TYPE_AXIS_USE,
|
||||
GDK_AXIS_IGNORE,
|
||||
GIMP_PARAM_READWRITE);
|
||||
g_object_class_install_property (object_class, PROP_AXES,
|
||||
g_param_spec_value_array ("axes",
|
||||
NULL, NULL,
|
||||
param_spec,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_FLAGS));
|
||||
|
||||
array_spec = g_param_spec_value_array ("keys",
|
||||
NULL, NULL,
|
||||
g_param_spec_string ("key",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE),
|
||||
GIMP_CONFIG_PARAM_FLAGS);
|
||||
g_object_class_install_property (object_class, PROP_KEYS, array_spec);
|
||||
param_spec = g_param_spec_string ("key",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE);
|
||||
g_object_class_install_property (object_class, PROP_KEYS,
|
||||
g_param_spec_value_array ("keys",
|
||||
NULL, NULL,
|
||||
param_spec,
|
||||
GIMP_PARAM_STATIC_STRINGS |
|
||||
GIMP_CONFIG_PARAM_FLAGS));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -118,7 +118,7 @@ gimp_device_status_class_init (GimpDeviceStatusClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_GIMP,
|
||||
g_param_spec_object ("gimp", NULL, NULL,
|
||||
GIMP_TYPE_GIMP,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -142,14 +142,14 @@ gimp_dock_class_init (GimpDockClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_CONTEXT,
|
||||
g_param_spec_object ("context", NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_DIALOG_FACTORY,
|
||||
g_param_spec_object ("dialog-factory",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_DIALOG_FACTORY,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
|
@ -157,7 +157,7 @@ gimp_dock_class_init (GimpDockClass *klass)
|
|||
NULL, NULL,
|
||||
-1, G_MAXINT,
|
||||
DEFAULT_DOCK_HEIGHT,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -128,7 +128,7 @@ gimp_dockable_class_init (GimpDockableClass *klass)
|
|||
0,
|
||||
G_MAXINT,
|
||||
0,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -157,13 +157,13 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
|
|||
NULL, NULL,
|
||||
0, G_MAXINT,
|
||||
DEFAULT_TAB_BORDER,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("tab-icon-size",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_ICON_SIZE,
|
||||
DEFAULT_TAB_ICON_SIZE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -86,7 +86,7 @@ gimp_dock_separator_class_init (GimpDockSeparatorClass *klass)
|
|||
NULL, NULL,
|
||||
0, G_MAXINT,
|
||||
DEFAULT_HEIGHT,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -108,40 +108,40 @@ gimp_editor_class_init (GimpEditorClass *klass)
|
|||
g_param_spec_object ("menu-factory",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_MENU_FACTORY,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_MENU_IDENTIFIER,
|
||||
g_param_spec_string ("menu-identifier",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_UI_PATH,
|
||||
g_param_spec_string ("ui-path",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_POPUP_DATA,
|
||||
g_param_spec_pointer ("popup-data",
|
||||
NULL, NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SHOW_NAME,
|
||||
g_param_spec_boolean ("show-name",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_NAME,
|
||||
g_param_spec_string ("name",
|
||||
NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
|
@ -150,7 +150,7 @@ gimp_editor_class_init (GimpEditorClass *klass)
|
|||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_CONTENT_SPACING,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_int ("button-spacing",
|
||||
|
@ -158,14 +158,14 @@ gimp_editor_class_init (GimpEditorClass *klass)
|
|||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_BUTTON_SPACING,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("button-icon-size",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_ICON_SIZE,
|
||||
DEFAULT_BUTTON_ICON_SIZE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -78,13 +78,13 @@ gimp_enum_action_class_init (GimpEnumActionClass *klass)
|
|||
g_param_spec_int ("value",
|
||||
NULL, NULL,
|
||||
G_MININT, G_MAXINT, 0,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_VALUE_VARIABLE,
|
||||
g_param_spec_boolean ("value-variable",
|
||||
NULL, NULL,
|
||||
FALSE,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
action_signals[SELECTED] =
|
||||
g_signal_new ("selected",
|
||||
|
|
|
@ -130,14 +130,14 @@ gimp_fg_bg_editor_class_init (GimpFgBgEditorClass *klass)
|
|||
g_param_spec_object ("context",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_ACTIVE_COLOR,
|
||||
g_param_spec_enum ("active-color",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_ACTIVE_COLOR,
|
||||
GIMP_ACTIVE_COLOR_FOREGROUND,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -81,7 +81,7 @@ gimp_fg_bg_view_class_init (GimpFgBgViewClass *klass)
|
|||
g_param_spec_object ("context",
|
||||
NULL, NULL,
|
||||
GIMP_TYPE_CONTEXT,
|
||||
G_PARAM_READWRITE));
|
||||
GIMP_PARAM_READWRITE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -79,7 +79,7 @@ gimp_gradient_select_class_init (GimpGradientSelectClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_SAMPLE_SIZE,
|
||||
g_param_spec_int ("sample-size", NULL, NULL,
|
||||
0, 10000, 84,
|
||||
G_PARAM_WRITABLE |
|
||||
GIMP_PARAM_WRITABLE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -84,21 +84,21 @@ gimp_grid_editor_class_init (GimpGridEditorClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_GRID,
|
||||
g_param_spec_object ("grid", NULL, NULL,
|
||||
GIMP_TYPE_GRID,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
g_object_class_install_property (object_class, PROP_XRESOLUTION,
|
||||
g_param_spec_double ("xresolution", NULL, NULL,
|
||||
GIMP_MIN_RESOLUTION,
|
||||
GIMP_MAX_RESOLUTION,
|
||||
GRID_EDITOR_DEFAULT_RESOLUTION,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
g_object_class_install_property (object_class, PROP_YRESOLUTION,
|
||||
g_param_spec_double ("yresolution", NULL, NULL,
|
||||
GIMP_MIN_RESOLUTION,
|
||||
GIMP_MAX_RESOLUTION,
|
||||
GRID_EDITOR_DEFAULT_RESOLUTION,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ gimp_histogram_view_class_init (GimpHistogramViewClass *klass)
|
|||
NULL, NULL,
|
||||
GIMP_TYPE_HISTOGRAM_CHANNEL,
|
||||
GIMP_HISTOGRAM_VALUE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SCALE,
|
||||
|
@ -129,20 +129,20 @@ gimp_histogram_view_class_init (GimpHistogramViewClass *klass)
|
|||
NULL, NULL,
|
||||
GIMP_TYPE_HISTOGRAM_SCALE,
|
||||
GIMP_HISTOGRAM_SCALE_LINEAR,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_BORDER_WIDTH,
|
||||
g_param_spec_int ("border-width", NULL, NULL,
|
||||
0, 32, 1,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_SUBDIVISIONS,
|
||||
g_param_spec_int ("subdivisions",
|
||||
NULL, NULL,
|
||||
1, 64, 5,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
}
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ gimp_image_prop_view_class_init (GimpImagePropViewClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_IMAGE,
|
||||
g_param_spec_object ("image", NULL, NULL,
|
||||
GIMP_TYPE_IMAGE,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
|
@ -119,13 +119,13 @@ gimp_menu_dock_class_init (GimpMenuDockClass *klass)
|
|||
0,
|
||||
G_MAXINT,
|
||||
DEFAULT_MINIMAL_WIDTH,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
gtk_widget_class_install_style_property (widget_class,
|
||||
g_param_spec_enum ("menu-preview-size",
|
||||
NULL, NULL,
|
||||
GTK_TYPE_ICON_SIZE,
|
||||
DEFAULT_MENU_VIEW_SIZE,
|
||||
G_PARAM_READABLE));
|
||||
GIMP_PARAM_READABLE));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -97,7 +97,7 @@ gimp_message_box_class_init (GimpMessageBoxClass *klass)
|
|||
g_object_class_install_property (object_class, PROP_STOCK_ID,
|
||||
g_param_spec_string ("stock-id", NULL, NULL,
|
||||
NULL,
|
||||
G_PARAM_READWRITE |
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue