diff --git a/ChangeLog b/ChangeLog index 1f4f2986f9..25677d1bbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-01-18 Michael Natterer + + * 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 * app/dialogs/quit-dialog.c (quit_close_all_dialog_new): diff --git a/app/config/config-types.h b/app/config/config-types.h index 4947bb938e..ac17ad864d 100644 --- a/app/config/config-types.h +++ b/app/config/config-types.h @@ -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; diff --git a/app/config/gimpbaseconfig.c b/app/config/gimpbaseconfig.c index 41fcd1476c..cf15d3cadd 100644 --- a/app/config/gimpbaseconfig.c +++ b/app/config/gimpbaseconfig.c @@ -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); } diff --git a/app/config/gimpcoreconfig.c b/app/config/gimpcoreconfig.c index a34f836c56..bdfc9a3c87 100644 --- a/app/config/gimpcoreconfig.c +++ b/app/config/gimpcoreconfig.c @@ -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 diff --git a/app/config/gimpdisplayconfig.c b/app/config/gimpdisplayconfig.c index c70b362ea3..c91526b315 100644 --- a/app/config/gimpdisplayconfig.c +++ b/app/config/gimpdisplayconfig.c @@ -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 diff --git a/app/config/gimpguiconfig.c b/app/config/gimpguiconfig.c index 83e14c3fee..3dbad23914 100644 --- a/app/config/gimpguiconfig.c +++ b/app/config/gimpguiconfig.c @@ -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 diff --git a/app/config/gimppluginconfig.c b/app/config/gimppluginconfig.c index a5a3ca8faf..42cdaafe99 100644 --- a/app/config/gimppluginconfig.c +++ b/app/config/gimppluginconfig.c @@ -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); } diff --git a/app/core/gimpbrushgenerated-load.c b/app/core/gimpbrushgenerated-load.c index cafc23e48f..50b89a5e2d 100644 --- a/app/core/gimpbrushgenerated-load.c +++ b/app/core/gimpbrushgenerated-load.c @@ -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)); } diff --git a/app/core/gimpbrushgenerated-save.c b/app/core/gimpbrushgenerated-save.c index cafc23e48f..50b89a5e2d 100644 --- a/app/core/gimpbrushgenerated-save.c +++ b/app/core/gimpbrushgenerated-save.c @@ -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)); } diff --git a/app/core/gimpbrushgenerated.c b/app/core/gimpbrushgenerated.c index cafc23e48f..50b89a5e2d 100644 --- a/app/core/gimpbrushgenerated.c +++ b/app/core/gimpbrushgenerated.c @@ -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)); } diff --git a/app/core/gimpcontainer.c b/app/core/gimpcontainer.c index aa571d4b7c..d764966697 100644 --- a/app/core/gimpcontainer.c +++ b/app/core/gimpcontainer.c @@ -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 diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c index 8e5450111b..23701f5cba 100644 --- a/app/core/gimpcontext.c +++ b/app/core/gimpcontext.c @@ -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 diff --git a/app/core/gimpdata.c b/app/core/gimpdata.c index b626b8fdac..09933d503a 100644 --- a/app/core/gimpdata.c +++ b/app/core/gimpdata.c @@ -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)); } diff --git a/app/core/gimpgrid.c b/app/core/gimpgrid.c index c59fc1f5f5..025e2c9ba8 100644 --- a/app/core/gimpgrid.c +++ b/app/core/gimpgrid.c @@ -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 diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c index 3eb0ed6e9d..1e94753d33 100644 --- a/app/core/gimpimage.c +++ b/app/core/gimpimage.c @@ -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 (); diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c index a264bb9909..5945a43e0b 100644 --- a/app/core/gimpitem.c +++ b/app/core/gimpitem.c @@ -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 diff --git a/app/core/gimpitemundo.c b/app/core/gimpitemundo.c index 4e3723196e..84a1e86c3b 100644 --- a/app/core/gimpitemundo.c +++ b/app/core/gimpitemundo.c @@ -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)); } diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c index 26ab7befc6..105f4fc8d9 100644 --- a/app/core/gimplayer.c +++ b/app/core/gimplayer.c @@ -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 diff --git a/app/core/gimplist.c b/app/core/gimplist.c index 097667462f..73817ac2ab 100644 --- a/app/core/gimplist.c +++ b/app/core/gimplist.c @@ -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)); } diff --git a/app/core/gimpobject.c b/app/core/gimpobject.c index db0955f85e..2cf0c04604 100644 --- a/app/core/gimpobject.c +++ b/app/core/gimpobject.c @@ -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)); } diff --git a/app/core/gimppdbprogress.c b/app/core/gimppdbprogress.c index 0a1df2b5b1..9b5109cd82 100644 --- a/app/core/gimppdbprogress.c +++ b/app/core/gimppdbprogress.c @@ -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)); } diff --git a/app/core/gimpstrokedesc.c b/app/core/gimpstrokedesc.c index 9e5bbfbb0f..5bfc4cc735 100644 --- a/app/core/gimpstrokedesc.c +++ b/app/core/gimpstrokedesc.c @@ -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 diff --git a/app/core/gimpstrokeoptions.c b/app/core/gimpstrokeoptions.c index 36b44669e4..46f4bd285e 100644 --- a/app/core/gimpstrokeoptions.c +++ b/app/core/gimpstrokeoptions.c @@ -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 diff --git a/app/core/gimptemplate.c b/app/core/gimptemplate.c index d14fdd9c77..b784033f82 100644 --- a/app/core/gimptemplate.c +++ b/app/core/gimptemplate.c @@ -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 diff --git a/app/core/gimptoolinfo.c b/app/core/gimptoolinfo.c index 3682d651a6..871a362b08 100644 --- a/app/core/gimptoolinfo.c +++ b/app/core/gimptoolinfo.c @@ -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 diff --git a/app/core/gimptooloptions.c b/app/core/gimptooloptions.c index 3689a67dce..67a4e2b680 100644 --- a/app/core/gimptooloptions.c +++ b/app/core/gimptooloptions.c @@ -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)); } diff --git a/app/core/gimpundo.c b/app/core/gimpundo.c index 6272f73f43..20b8a4acea 100644 --- a/app/core/gimpundo.c +++ b/app/core/gimpundo.c @@ -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)); } diff --git a/app/core/gimpviewable.c b/app/core/gimpviewable.c index dc920aabd1..a117c2c8f1 100644 --- a/app/core/gimpviewable.c +++ b/app/core/gimpviewable.c @@ -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 diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c index 3e7dc69404..1b47fc8e12 100644 --- a/app/display/gimpdisplay.c +++ b/app/display/gimpdisplay.c @@ -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 diff --git a/app/display/gimpdisplayoptions.c b/app/display/gimpdisplayoptions.c index 2d916ca743..5896693c98 100644 --- a/app/display/gimpdisplayoptions.c +++ b/app/display/gimpdisplayoptions.c @@ -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 diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c index 1cab5867e5..aefd1e3600 100644 --- a/app/display/gimpdisplayshell.c +++ b/app/display/gimpdisplayshell.c @@ -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); } diff --git a/app/display/gimpstatusbar.c b/app/display/gimpstatusbar.c index 80c792e1bc..7c091f7ab5 100644 --- a/app/display/gimpstatusbar.c +++ b/app/display/gimpstatusbar.c @@ -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 diff --git a/app/paint/gimpairbrushoptions.c b/app/paint/gimpairbrushoptions.c index cf95ddc855..ddb737a14d 100644 --- a/app/paint/gimpairbrushoptions.c +++ b/app/paint/gimpairbrushoptions.c @@ -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 diff --git a/app/paint/gimpcloneoptions.c b/app/paint/gimpcloneoptions.c index a9ff628858..be2d9912b1 100644 --- a/app/paint/gimpcloneoptions.c +++ b/app/paint/gimpcloneoptions.c @@ -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 diff --git a/app/paint/gimpconvolveoptions.c b/app/paint/gimpconvolveoptions.c index 7af4a1b24c..f3cf8b7a52 100644 --- a/app/paint/gimpconvolveoptions.c +++ b/app/paint/gimpconvolveoptions.c @@ -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 diff --git a/app/paint/gimpdodgeburnoptions.c b/app/paint/gimpdodgeburnoptions.c index c28195f059..203f57c005 100644 --- a/app/paint/gimpdodgeburnoptions.c +++ b/app/paint/gimpdodgeburnoptions.c @@ -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 diff --git a/app/paint/gimperaseroptions.c b/app/paint/gimperaseroptions.c index 984607796c..33cd6f72ca 100644 --- a/app/paint/gimperaseroptions.c +++ b/app/paint/gimperaseroptions.c @@ -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 diff --git a/app/paint/gimpinkoptions.c b/app/paint/gimpinkoptions.c index 45d96b14d1..39c1922268 100644 --- a/app/paint/gimpinkoptions.c +++ b/app/paint/gimpinkoptions.c @@ -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 diff --git a/app/paint/gimppaintoptions.c b/app/paint/gimppaintoptions.c index ebe8d6ff00..81434b91c6 100644 --- a/app/paint/gimppaintoptions.c +++ b/app/paint/gimppaintoptions.c @@ -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 diff --git a/app/paint/gimppenciloptions.c b/app/paint/gimppenciloptions.c index 4e347100a1..cf251a95ad 100644 --- a/app/paint/gimppenciloptions.c +++ b/app/paint/gimppenciloptions.c @@ -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 diff --git a/app/paint/gimpsmudgeoptions.c b/app/paint/gimpsmudgeoptions.c index 34535d3be6..0fe6c3aa2c 100644 --- a/app/paint/gimpsmudgeoptions.c +++ b/app/paint/gimpsmudgeoptions.c @@ -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 diff --git a/app/paint/gimpsourceoptions.c b/app/paint/gimpsourceoptions.c index a9ff628858..be2d9912b1 100644 --- a/app/paint/gimpsourceoptions.c +++ b/app/paint/gimpsourceoptions.c @@ -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 diff --git a/app/text/gimpfont.c b/app/text/gimpfont.c index a27ef658aa..b87f71a2dd 100644 --- a/app/text/gimpfont.c +++ b/app/text/gimpfont.c @@ -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 diff --git a/app/text/gimptext.c b/app/text/gimptext.c index 14d8c9a6b3..4ef1b7f952 100644 --- a/app/text/gimptext.c +++ b/app/text/gimptext.c @@ -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); } diff --git a/app/text/gimptextlayer.c b/app/text/gimptextlayer.c index 4a4a9a8961..704f8a9e2f 100644 --- a/app/text/gimptextlayer.c +++ b/app/text/gimptextlayer.c @@ -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 diff --git a/app/text/gimptextundo.c b/app/text/gimptextundo.c index 3aea73f077..02de1c6c7c 100644 --- a/app/text/gimptextundo.c +++ b/app/text/gimptextundo.c @@ -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)); } diff --git a/app/tools/gimpalignoptions.c b/app/tools/gimpalignoptions.c index 3611e3278c..17c02f796a 100644 --- a/app/tools/gimpalignoptions.c +++ b/app/tools/gimpalignoptions.c @@ -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 diff --git a/app/tools/gimpblendoptions.c b/app/tools/gimpblendoptions.c index 17475c230b..146061321e 100644 --- a/app/tools/gimpblendoptions.c +++ b/app/tools/gimpblendoptions.c @@ -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 diff --git a/app/tools/gimpbucketfilloptions.c b/app/tools/gimpbucketfilloptions.c index f423781160..aafe4923d7 100644 --- a/app/tools/gimpbucketfilloptions.c +++ b/app/tools/gimpbucketfilloptions.c @@ -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 diff --git a/app/tools/gimpcoloroptions.c b/app/tools/gimpcoloroptions.c index 929bad71c4..105f9fad95 100644 --- a/app/tools/gimpcoloroptions.c +++ b/app/tools/gimpcoloroptions.c @@ -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 diff --git a/app/tools/gimpcolorpickeroptions.c b/app/tools/gimpcolorpickeroptions.c index cf694828a6..d791b090c9 100644 --- a/app/tools/gimpcolorpickeroptions.c +++ b/app/tools/gimpcolorpickeroptions.c @@ -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 diff --git a/app/tools/gimpcropoptions.c b/app/tools/gimpcropoptions.c index 666fab658f..ec7929e772 100644 --- a/app/tools/gimpcropoptions.c +++ b/app/tools/gimpcropoptions.c @@ -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); } diff --git a/app/tools/gimpflipoptions.c b/app/tools/gimpflipoptions.c index 7456f1be5d..5352faae16 100644 --- a/app/tools/gimpflipoptions.c +++ b/app/tools/gimpflipoptions.c @@ -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 diff --git a/app/tools/gimpforegroundselectoptions.c b/app/tools/gimpforegroundselectoptions.c index 555bd898d2..fa4c51ca9f 100644 --- a/app/tools/gimpforegroundselectoptions.c +++ b/app/tools/gimpforegroundselectoptions.c @@ -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 diff --git a/app/tools/gimphistogramoptions.c b/app/tools/gimphistogramoptions.c index e60b3dc9e8..dad14e4c5a 100644 --- a/app/tools/gimphistogramoptions.c +++ b/app/tools/gimphistogramoptions.c @@ -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 diff --git a/app/tools/gimpimagemapoptions.c b/app/tools/gimpimagemapoptions.c index 037c8dafdb..f9ff44ddc6 100644 --- a/app/tools/gimpimagemapoptions.c +++ b/app/tools/gimpimagemapoptions.c @@ -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 diff --git a/app/tools/gimpmagnifyoptions.c b/app/tools/gimpmagnifyoptions.c index f3a2086e93..e7fd652318 100644 --- a/app/tools/gimpmagnifyoptions.c +++ b/app/tools/gimpmagnifyoptions.c @@ -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 diff --git a/app/tools/gimpmeasureoptions.c b/app/tools/gimpmeasureoptions.c index 903d464cd5..aa36439762 100644 --- a/app/tools/gimpmeasureoptions.c +++ b/app/tools/gimpmeasureoptions.c @@ -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 diff --git a/app/tools/gimpmoveoptions.c b/app/tools/gimpmoveoptions.c index f2d215d288..52bab57b10 100644 --- a/app/tools/gimpmoveoptions.c +++ b/app/tools/gimpmoveoptions.c @@ -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 diff --git a/app/tools/gimprectangleoptions.c b/app/tools/gimprectangleoptions.c index 8e65cc2cbb..e126d0238d 100644 --- a/app/tools/gimprectangleoptions.c +++ b/app/tools/gimprectangleoptions.c @@ -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; } diff --git a/app/tools/gimprectangletool.c b/app/tools/gimprectangletool.c index 07ef740577..3119db56db 100644 --- a/app/tools/gimprectangletool.c +++ b/app/tools/gimprectangletool.c @@ -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; } diff --git a/app/tools/gimpselectionoptions.c b/app/tools/gimpselectionoptions.c index 493a99da9c..c0f5b6e943 100644 --- a/app/tools/gimpselectionoptions.c +++ b/app/tools/gimpselectionoptions.c @@ -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 diff --git a/app/tools/gimptextoptions.c b/app/tools/gimptextoptions.c index cc865a0428..342b29a323 100644 --- a/app/tools/gimptextoptions.c +++ b/app/tools/gimptextoptions.c @@ -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 diff --git a/app/tools/gimptool.c b/app/tools/gimptool.c index 4d723f4ce7..33ed26397d 100644 --- a/app/tools/gimptool.c +++ b/app/tools/gimptool.c @@ -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)); } diff --git a/app/tools/gimptransformoptions.c b/app/tools/gimptransformoptions.c index 5918afd8e9..e7055b2308 100644 --- a/app/tools/gimptransformoptions.c +++ b/app/tools/gimptransformoptions.c @@ -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 diff --git a/app/tools/gimpvectoroptions.c b/app/tools/gimpvectoroptions.c index b13bcd288b..6b99bddc66 100644 --- a/app/tools/gimpvectoroptions.c +++ b/app/tools/gimpvectoroptions.c @@ -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 diff --git a/app/vectors/gimpstroke.c b/app/vectors/gimpstroke.c index 167319ee49..4bdf7e2e33 100644 --- a/app/vectors/gimpstroke.c +++ b/app/vectors/gimpstroke.c @@ -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 diff --git a/app/widgets/gimpaction.c b/app/widgets/gimpaction.c index 02ce72d618..d6f9df0ef0 100644 --- a/app/widgets/gimpaction.c +++ b/app/widgets/gimpaction.c @@ -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 diff --git a/app/widgets/gimpactiongroup.c b/app/widgets/gimpactiongroup.c index c71183dd99..dd92227f12 100644 --- a/app/widgets/gimpactiongroup.c +++ b/app/widgets/gimpactiongroup.c @@ -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, diff --git a/app/widgets/gimpblobeditor.c b/app/widgets/gimpblobeditor.c index 6d57f7923b..ce001bf111 100644 --- a/app/widgets/gimpblobeditor.c +++ b/app/widgets/gimpblobeditor.c @@ -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)); } diff --git a/app/widgets/gimpbrushselect.c b/app/widgets/gimpbrushselect.c index f878e13a4a..a927d9b00f 100644 --- a/app/widgets/gimpbrushselect.c +++ b/app/widgets/gimpbrushselect.c @@ -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)); } diff --git a/app/widgets/gimpcellrendereraccel.c b/app/widgets/gimpcellrendereraccel.c index b4f1968d3d..994c90c16b 100644 --- a/app/widgets/gimpcellrendereraccel.c +++ b/app/widgets/gimpcellrendereraccel.c @@ -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)); } diff --git a/app/widgets/gimpcellrendererdashes.c b/app/widgets/gimpcellrendererdashes.c index c01d6b8436..72b4e705a5 100644 --- a/app/widgets/gimpcellrendererdashes.c +++ b/app/widgets/gimpcellrendererdashes.c @@ -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 diff --git a/app/widgets/gimpcellrendererviewable.c b/app/widgets/gimpcellrendererviewable.c index ddbe05e9dc..198cff20ed 100644 --- a/app/widgets/gimpcellrendererviewable.c +++ b/app/widgets/gimpcellrendererviewable.c @@ -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 diff --git a/app/widgets/gimpcolorbar.c b/app/widgets/gimpcolorbar.c index fd308c08c5..f4e9699073 100644 --- a/app/widgets/gimpcolorbar.c +++ b/app/widgets/gimpcolorbar.c @@ -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; } diff --git a/app/widgets/gimpcoloreditor.c b/app/widgets/gimpcoloreditor.c index ae8d8031e7..9ce9ffce89 100644 --- a/app/widgets/gimpcoloreditor.c +++ b/app/widgets/gimpcoloreditor.c @@ -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 diff --git a/app/widgets/gimpcolorframe.c b/app/widgets/gimpcolorframe.c index d91a13eaba..aa5f61d175 100644 --- a/app/widgets/gimpcolorframe.c +++ b/app/widgets/gimpcolorframe.c @@ -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 diff --git a/app/widgets/gimpcontainerview.c b/app/widgets/gimpcontainerview.c index ad0fa6a341..0db9c78293 100644 --- a/app/widgets/gimpcontainerview.c +++ b/app/widgets/gimpcontainerview.c @@ -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)); } diff --git a/app/widgets/gimpcontrollereditor.c b/app/widgets/gimpcontrollereditor.c index de87ee2ccf..eee1e01c15 100644 --- a/app/widgets/gimpcontrollereditor.c +++ b/app/widgets/gimpcontrollereditor.c @@ -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)); } diff --git a/app/widgets/gimpcontrollerinfo.c b/app/widgets/gimpcontrollerinfo.c index 7b7a53cbd9..edbe176389 100644 --- a/app/widgets/gimpcontrollerinfo.c +++ b/app/widgets/gimpcontrollerinfo.c @@ -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", diff --git a/app/widgets/gimpcontrollerlist.c b/app/widgets/gimpcontrollerlist.c index 26f00072a8..954c15e5ec 100644 --- a/app/widgets/gimpcontrollerlist.c +++ b/app/widgets/gimpcontrollerlist.c @@ -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)); } diff --git a/app/widgets/gimpcursorview.c b/app/widgets/gimpcursorview.c index dddab3e19f..14b6466568 100644 --- a/app/widgets/gimpcursorview.c +++ b/app/widgets/gimpcursorview.c @@ -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)); } diff --git a/app/widgets/gimpdasheditor.c b/app/widgets/gimpdasheditor.c index 2b1112ff77..c8bb478417 100644 --- a/app/widgets/gimpdasheditor.c +++ b/app/widgets/gimpdasheditor.c @@ -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)); } diff --git a/app/widgets/gimpdataeditor.c b/app/widgets/gimpdataeditor.c index b2dc94b91b..dfff56e2e9 100644 --- a/app/widgets/gimpdataeditor.c +++ b/app/widgets/gimpdataeditor.c @@ -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 diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c index ba89edb9d8..91001b0201 100644 --- a/app/widgets/gimpdeviceinfo.c +++ b/app/widgets/gimpdeviceinfo.c @@ -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 diff --git a/app/widgets/gimpdevicestatus.c b/app/widgets/gimpdevicestatus.c index 04bbe8c8bc..6731817053 100644 --- a/app/widgets/gimpdevicestatus.c +++ b/app/widgets/gimpdevicestatus.c @@ -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)); } diff --git a/app/widgets/gimpdock.c b/app/widgets/gimpdock.c index 80a7367050..9f7026ba77 100644 --- a/app/widgets/gimpdock.c +++ b/app/widgets/gimpdock.c @@ -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 diff --git a/app/widgets/gimpdockable.c b/app/widgets/gimpdockable.c index 67bee8c278..8df57caa0c 100644 --- a/app/widgets/gimpdockable.c +++ b/app/widgets/gimpdockable.c @@ -128,7 +128,7 @@ gimp_dockable_class_init (GimpDockableClass *klass) 0, G_MAXINT, 0, - G_PARAM_READABLE)); + GIMP_PARAM_READABLE)); } static void diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c index 4707e1a743..3616027910 100644 --- a/app/widgets/gimpdockbook.c +++ b/app/widgets/gimpdockbook.c @@ -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 diff --git a/app/widgets/gimpdockseparator.c b/app/widgets/gimpdockseparator.c index 60db24ddc2..164667fc5a 100644 --- a/app/widgets/gimpdockseparator.c +++ b/app/widgets/gimpdockseparator.c @@ -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 diff --git a/app/widgets/gimpeditor.c b/app/widgets/gimpeditor.c index 074a16d388..a5be799637 100644 --- a/app/widgets/gimpeditor.c +++ b/app/widgets/gimpeditor.c @@ -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 diff --git a/app/widgets/gimpenumaction.c b/app/widgets/gimpenumaction.c index ceba3f9a0c..3edc22e14d 100644 --- a/app/widgets/gimpenumaction.c +++ b/app/widgets/gimpenumaction.c @@ -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", diff --git a/app/widgets/gimpfgbgeditor.c b/app/widgets/gimpfgbgeditor.c index 559757d17f..eada6897a6 100644 --- a/app/widgets/gimpfgbgeditor.c +++ b/app/widgets/gimpfgbgeditor.c @@ -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 diff --git a/app/widgets/gimpfgbgview.c b/app/widgets/gimpfgbgview.c index 7cb721a074..f21dcd75e6 100644 --- a/app/widgets/gimpfgbgview.c +++ b/app/widgets/gimpfgbgview.c @@ -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 diff --git a/app/widgets/gimpgradientselect.c b/app/widgets/gimpgradientselect.c index 226dfaf113..ce46f44aa7 100644 --- a/app/widgets/gimpgradientselect.c +++ b/app/widgets/gimpgradientselect.c @@ -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)); } diff --git a/app/widgets/gimpgrideditor.c b/app/widgets/gimpgrideditor.c index deea0e5890..94aa783126 100644 --- a/app/widgets/gimpgrideditor.c +++ b/app/widgets/gimpgrideditor.c @@ -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)); } diff --git a/app/widgets/gimphistogramview.c b/app/widgets/gimphistogramview.c index 64fb560a7b..e24dec9897 100644 --- a/app/widgets/gimphistogramview.c +++ b/app/widgets/gimphistogramview.c @@ -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)); } diff --git a/app/widgets/gimpimagepropview.c b/app/widgets/gimpimagepropview.c index 58f8aab972..f09002a766 100644 --- a/app/widgets/gimpimagepropview.c +++ b/app/widgets/gimpimagepropview.c @@ -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)); } diff --git a/app/widgets/gimpmenudock.c b/app/widgets/gimpmenudock.c index d757bab587..d30dfe08d7 100644 --- a/app/widgets/gimpmenudock.c +++ b/app/widgets/gimpmenudock.c @@ -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 diff --git a/app/widgets/gimpmessagebox.c b/app/widgets/gimpmessagebox.c index 8a9f8127d1..c64ee13dc4 100644 --- a/app/widgets/gimpmessagebox.c +++ b/app/widgets/gimpmessagebox.c @@ -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)); } diff --git a/app/widgets/gimppdbdialog.c b/app/widgets/gimppdbdialog.c index 1a013a459f..aabe7020fd 100644 --- a/app/widgets/gimppdbdialog.c +++ b/app/widgets/gimppdbdialog.c @@ -128,34 +128,34 @@ gimp_pdb_dialog_class_init (GimpPdbDialogClass *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_SELECT_TYPE, g_param_spec_pointer ("select-type", NULL, NULL, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_INITIAL_OBJECT, g_param_spec_object ("initial-object", NULL, NULL, GIMP_TYPE_OBJECT, - 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)); g_object_class_install_property (object_class, PROP_MENU_FACTORY, g_param_spec_object ("menu-factory", NULL, NULL, GIMP_TYPE_MENU_FACTORY, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimppluginaction.c b/app/widgets/gimppluginaction.c index ab2542cf89..c86d559cbd 100644 --- a/app/widgets/gimppluginaction.c +++ b/app/widgets/gimppluginaction.c @@ -81,7 +81,7 @@ gimp_plug_in_action_class_init (GimpPlugInActionClass *klass) g_object_class_install_property (object_class, PROP_PROC_DEF, g_param_spec_pointer ("proc-def", NULL, NULL, - G_PARAM_READWRITE)); + GIMP_PARAM_READWRITE)); action_signals[SELECTED] = g_signal_new ("selected", diff --git a/app/widgets/gimpsamplepointeditor.c b/app/widgets/gimpsamplepointeditor.c index d61207ec6a..fbb15047a1 100644 --- a/app/widgets/gimpsamplepointeditor.c +++ b/app/widgets/gimpsamplepointeditor.c @@ -113,7 +113,7 @@ gimp_sample_point_editor_class_init (GimpSamplePointEditorClass *klass) g_param_spec_boolean ("sample-merged", NULL, NULL, TRUE, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); } diff --git a/app/widgets/gimpsizebox.c b/app/widgets/gimpsizebox.c index f313b01b79..a16b049ba2 100644 --- a/app/widgets/gimpsizebox.c +++ b/app/widgets/gimpsizebox.c @@ -108,20 +108,20 @@ gimp_size_box_class_init (GimpSizeBoxClass *klass) GIMP_MIN_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE, 256, - 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, GIMP_MIN_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE, 256, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_UNIT, gimp_param_spec_unit ("unit", NULL, NULL, TRUE, TRUE, GIMP_UNIT_PIXEL, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_XRESOLUTION, g_param_spec_double ("xresolution", @@ -129,7 +129,7 @@ gimp_size_box_class_init (GimpSizeBoxClass *klass) GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION, 72.0, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_YRESOLUTION, g_param_spec_double ("yresolution", @@ -137,25 +137,25 @@ gimp_size_box_class_init (GimpSizeBoxClass *klass) GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION, 72.0, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_RESOLUTION_UNIT, gimp_param_spec_unit ("resolution-unit", NULL, NULL, FALSE, FALSE, GIMP_UNIT_INCH, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_KEEP_ASPECT, g_param_spec_boolean ("keep-aspect", NULL, NULL, TRUE, - G_PARAM_READWRITE)); + GIMP_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_EDIT_RESOLUTION, g_param_spec_boolean ("edit-resolution", NULL, NULL, FALSE, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimpstringaction.c b/app/widgets/gimpstringaction.c index 8833fd8464..6a1cd959bb 100644 --- a/app/widgets/gimpstringaction.c +++ b/app/widgets/gimpstringaction.c @@ -79,7 +79,7 @@ gimp_string_action_class_init (GimpStringActionClass *klass) g_param_spec_string ("value", NULL, NULL, NULL, - G_PARAM_READWRITE)); + GIMP_PARAM_READWRITE)); action_signals[SELECTED] = g_signal_new ("selected", diff --git a/app/widgets/gimpstrokeeditor.c b/app/widgets/gimpstrokeeditor.c index 5075aecc6d..7c1dbf11e3 100644 --- a/app/widgets/gimpstrokeeditor.c +++ b/app/widgets/gimpstrokeeditor.c @@ -83,14 +83,14 @@ gimp_stroke_editor_class_init (GimpStrokeEditorClass *klass) g_object_class_install_property (object_class, PROP_OPTIONS, g_param_spec_object ("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_RESOLUTION, g_param_spec_double ("resolution", NULL, NULL, GIMP_MIN_RESOLUTION, GIMP_MAX_RESOLUTION, 72.0, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimptemplateeditor.c b/app/widgets/gimptemplateeditor.c index d3c862a0aa..82667586f8 100644 --- a/app/widgets/gimptemplateeditor.c +++ b/app/widgets/gimptemplateeditor.c @@ -91,7 +91,7 @@ gimp_template_editor_class_init (GimpTemplateEditorClass *klass) g_object_class_install_property (object_class, PROP_TEMPLATE, g_param_spec_object ("template", NULL, NULL, GIMP_TYPE_TEMPLATE, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimptoolbox.c b/app/widgets/gimptoolbox.c index 2a84201760..2710843ed4 100644 --- a/app/widgets/gimptoolbox.c +++ b/app/widgets/gimptoolbox.c @@ -148,14 +148,14 @@ gimp_toolbox_class_init (GimpToolboxClass *klass) NULL, NULL, GTK_TYPE_ICON_SIZE, DEFAULT_TOOL_ICON_SIZE, - G_PARAM_READABLE)); + GIMP_PARAM_READABLE)); gtk_widget_class_install_style_property (widget_class, g_param_spec_enum ("button-relief", NULL, NULL, GTK_TYPE_RELIEF_STYLE, DEFAULT_BUTTON_RELIEF, - G_PARAM_READABLE)); + GIMP_PARAM_READABLE)); } static void diff --git a/app/widgets/gimpuimanager.c b/app/widgets/gimpuimanager.c index c7491ab372..b7cf794adb 100644 --- a/app/widgets/gimpuimanager.c +++ b/app/widgets/gimpuimanager.c @@ -145,14 +145,14 @@ gimp_ui_manager_class_init (GimpUIManagerClass *klass) g_param_spec_string ("name", NULL, NULL, NULL, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); 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)); klass->managers = g_hash_table_new_full (g_str_hash, g_str_equal, diff --git a/app/widgets/gimpundoeditor.c b/app/widgets/gimpundoeditor.c index 0bfd4ad5f4..225fb40c41 100644 --- a/app/widgets/gimpundoeditor.c +++ b/app/widgets/gimpundoeditor.c @@ -94,7 +94,7 @@ gimp_undo_editor_class_init (GimpUndoEditorClass *klass) NULL, NULL, GIMP_TYPE_VIEW_SIZE, GIMP_VIEW_SIZE_LARGE, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimpunitstore.c b/app/widgets/gimpunitstore.c index 896520f3d7..f573477e29 100644 --- a/app/widgets/gimpunitstore.c +++ b/app/widgets/gimpunitstore.c @@ -116,7 +116,7 @@ gimp_unit_store_class_init (GimpUnitStoreClass *klass) g_param_spec_int ("num-values", NULL, NULL, 0, G_MAXINT, 0, - G_PARAM_READWRITE | + GIMP_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/app/widgets/gimpviewablebutton.c b/app/widgets/gimpviewablebutton.c index 4fb67b7226..01369a9c02 100644 --- a/app/widgets/gimpviewablebutton.c +++ b/app/widgets/gimpviewablebutton.c @@ -90,7 +90,7 @@ gimp_viewable_button_class_init (GimpViewableButtonClass *klass) NULL, NULL, GIMP_TYPE_VIEW_TYPE, GIMP_VIEW_TYPE_LIST, - G_PARAM_READWRITE)); + GIMP_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_POPUP_VIEW_SIZE, g_param_spec_int ("popup-view-size", @@ -98,7 +98,7 @@ gimp_viewable_button_class_init (GimpViewableButtonClass *klass) GIMP_VIEW_SIZE_TINY, GIMP_VIEW_SIZE_GIGANTIC, GIMP_VIEW_SIZE_SMALL, - G_PARAM_READWRITE)); + GIMP_PARAM_READWRITE)); } static void diff --git a/app/widgets/gimpviewabledialog.c b/app/widgets/gimpviewabledialog.c index 530176dfb0..01a3e35400 100644 --- a/app/widgets/gimpviewabledialog.c +++ b/app/widgets/gimpviewabledialog.c @@ -75,17 +75,17 @@ gimp_viewable_dialog_class_init (GimpViewableDialogClass *klass) g_object_class_install_property (object_class, PROP_STOCK_ID, g_param_spec_string ("stock-id", NULL, NULL, NULL, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DESC, g_param_spec_string ("description", NULL, NULL, NULL, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); g_object_class_install_property (object_class, PROP_PARENT, g_param_spec_object ("parent", NULL, NULL, GTK_TYPE_WIDGET, - G_PARAM_WRITABLE | + GIMP_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)); }