Commit 8be52f6a authored by Michael Natterer's avatar Michael Natterer 😴

app, libgimp*: pass translated blurbs to GIMP_CONFIG_INSTALL_PROP_FOO()

instead of passing N_()-strings; and remove gettext() calls on these
strings when using them. Reduces complexitx, and fixes double- and
untranslated strings. Also enables to treat properties of GIMP and
GEGL objects the same way, which was totally broken before.
parent 32feb14f
This diff is collapsed.
......@@ -132,20 +132,20 @@ gimp_template_class_init (GimpTemplateClass *klass)
GIMP_DEFAULT_IMAGE_HEIGHT,
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."),
_("The unit used for coordinate display "
"when not in dot-for-dot mode."),
TRUE, FALSE, GIMP_UNIT_PIXEL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_XRESOLUTION,
"xresolution",
N_("The horizontal image resolution."),
_("The horizontal image resolution."),
DEFAULT_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS |
GIMP_TEMPLATE_PARAM_COPY_FIRST);
GIMP_CONFIG_INSTALL_PROP_RESOLUTION (object_class, PROP_YRESOLUTION,
"yresolution",
N_("The vertical image resolution."),
_("The vertical image resolution."),
DEFAULT_RESOLUTION,
GIMP_PARAM_STATIC_STRINGS |
GIMP_TEMPLATE_PARAM_COPY_FIRST);
......
......@@ -807,9 +807,7 @@ prefs_profile_combo_add_tooltip (GtkWidget *combo,
blurb = g_param_spec_get_blurb (param_spec);
if (blurb)
gimp_help_set_help_data (combo,
dgettext (GETTEXT_PACKAGE "-libgimp", blurb),
NULL);
gimp_help_set_help_data (combo, blurb, NULL);
return combo;
}
......
......@@ -31,6 +31,8 @@
#include "gimpbrightnesscontrastconfig.h"
#include "gimplevelsconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -71,12 +73,12 @@ gimp_brightness_contrast_config_class_init (GimpBrightnessContrastConfigClass *k
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_BRIGHTNESS,
"brightness",
"Brightness",
_("Brightness"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CONTRAST,
"contrast",
"Contrast",
_("Contrast"),
-1.0, 1.0, 0.0, 0);
}
......
......@@ -32,6 +32,8 @@
#include "gimpcolorbalanceconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -91,28 +93,28 @@ gimp_color_balance_config_class_init (GimpColorBalanceConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_RANGE,
"range",
"The affected range",
_("The affected range"),
GIMP_TYPE_TRANSFER_MODE,
GIMP_TRANSFER_MIDTONES, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CYAN_RED,
"cyan-red",
"Cyan-Red",
_("Cyan-Red"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_MAGENTA_GREEN,
"magenta-green",
"Magenta-Green",
_("Magenta-Green"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_YELLOW_BLUE,
"yellow-blue",
"Yellow-Blue",
_("Yellow-Blue"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESERVE_LUMINOSITY,
"preserve-luminosity",
"Preserve Luminosity",
_("Preserve Luminosity"),
TRUE, 0);
}
......
......@@ -31,6 +31,8 @@
#include "gimpcolorizeconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -74,17 +76,17 @@ gimp_colorize_config_class_init (GimpColorizeConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HUE,
"hue",
"Hue",
_("Hue"),
0.0, 1.0, 0.5, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SATURATION,
"saturation",
"Saturation",
_("Saturation"),
0.0, 1.0, 0.5, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LIGHTNESS,
"lightness",
"Lightness",
_("Lightness"),
-1.0, 1.0, 0.0, 0);
gimp_hsl_set (&hsl, 0.5, 0.5, 0.5);
......
......@@ -40,6 +40,8 @@
#include "gimp-intl.h"
#include "gimp-intl.h"
enum
{
......@@ -101,13 +103,13 @@ gimp_curves_config_class_init (GimpCurvesConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CHANNEL,
"channel",
"The affected channel",
_("The affected channel"),
GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_HISTOGRAM_VALUE, 0);
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_CURVE,
"curve",
"Curve",
_("Curve"),
GIMP_TYPE_CURVE,
GIMP_CONFIG_PARAM_AGGREGATE);
}
......
......@@ -29,6 +29,8 @@
#include "gimpdesaturateconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -68,7 +70,7 @@ gimp_desaturate_config_class_init (GimpDesaturateConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MODE,
"mode",
"Desaturate mode",
_("Desaturate mode"),
GIMP_TYPE_DESATURATE_MODE,
GIMP_DESATURATE_LIGHTNESS, 0);
}
......
......@@ -30,6 +30,8 @@
#include "gimphuesaturationconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -89,28 +91,28 @@ gimp_hue_saturation_config_class_init (GimpHueSaturationConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_RANGE,
"range",
"The affected range",
_("The affected range"),
GIMP_TYPE_HUE_RANGE,
GIMP_ALL_HUES, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HUE,
"hue",
"Hue",
_("Hue"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_SATURATION,
"saturation",
"Saturation",
_("Saturation"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LIGHTNESS,
"lightness",
"Lightness",
_("Lightness"),
-1.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OVERLAP,
"overlap",
"Overlap",
_("Overlap"),
0.0, 1.0, 0.0, 0);
}
......
......@@ -103,33 +103,33 @@ gimp_levels_config_class_init (GimpLevelsConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CHANNEL,
"channel",
"The affected channel",
_("The affected channel"),
GIMP_TYPE_HISTOGRAM_CHANNEL,
GIMP_HISTOGRAM_VALUE, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GAMMA,
"gamma",
"Gamma",
_("Gamma"),
0.1, 10.0, 1.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LOW_INPUT,
"low-input",
"Low Input",
_("Low Input"),
0.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HIGH_INPUT,
"high-input",
"High Input",
_("High Input"),
0.0, 1.0, 1.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LOW_OUTPUT,
"low-output",
"Low Output",
_("Low Output"),
0.0, 1.0, 0.0, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HIGH_OUTPUT,
"high-output",
"High Output",
_("High Output"),
0.0, 1.0, 1.0, 0);
}
......
......@@ -29,6 +29,8 @@
#include "gimpthresholdconfig.h"
#include "gimp-intl.h"
enum
{
......@@ -68,12 +70,12 @@ gimp_threshold_config_class_init (GimpThresholdConfigClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_LOW,
"low",
"Low threshold",
_("Low threshold"),
0.0, 1.0, 0.5, 0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_HIGH,
"high",
"High threshold",
_("High threshold"),
0.0, 1.0, 1.0, 0);
}
......
......@@ -89,20 +89,20 @@ gimp_align_options_class_init (GimpAlignOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ALIGN_REFERENCE,
"align-reference",
N_("Reference image object a layer will be aligned on"),
_("Reference image object a layer will be aligned on"),
GIMP_TYPE_ALIGN_REFERENCE_TYPE,
GIMP_ALIGN_REFERENCE_FIRST,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_X,
"offset-x",
N_("Horizontal offset for distribution"),
_("Horizontal offset for distribution"),
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE, 0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_OFFSET_Y,
"offset-y",
N_("Vertical offset for distribution"),
_("Vertical offset for distribution"),
-GIMP_MAX_IMAGE_SIZE, GIMP_MAX_IMAGE_SIZE, 0,
GIMP_PARAM_STATIC_STRINGS);
}
......
......@@ -91,29 +91,29 @@ gimp_bucket_fill_options_class_init (GimpBucketFillOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_SELECTION,
"fill-selection",
N_("Which area will be filled"),
_("Which area will be filled"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FILL_TRANSPARENT,
"fill-transparent",
N_("Allow completely transparent regions "
"to be filled"),
_("Allow completely transparent regions "
"to be filled"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
"sample-merged",
N_("Base filled area on all visible "
"layers"),
_("Base filled area on all visible "
"layers"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD,
"threshold",
N_("Maximum color difference"),
_("Maximum color difference"),
0.0, 255.0, 15.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_FILL_CRITERION,
"fill-criterion",
N_("Criterion used for determining color similarity"),
_("Criterion used for determining color similarity"),
GIMP_TYPE_SELECT_CRITERION,
GIMP_SELECT_CRITERION_COMPOSITE,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -66,20 +66,20 @@ gimp_color_picker_options_class_init (GimpColorPickerOptionsClass *klass)
/* override a GimpColorOptions property to get a different default value */
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_AVERAGE,
"sample-average",
N_("Use accumulated color value from "
"all composited visible layers"),
_("Use accumulated color value from "
"all composited visible layers"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_PICK_MODE,
"pick-mode",
N_("Choose what color picker will do"),
_("Choose what color picker will do"),
GIMP_TYPE_COLOR_PICK_MODE,
GIMP_COLOR_PICK_MODE_FOREGROUND,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_INFO_WINDOW,
"use-info-window",
N_("Open a floating dialog to view picked "
"color values in various color models"),
_("Open a floating dialog to view picked "
"color values in various color models"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
}
......
......@@ -74,20 +74,20 @@ gimp_crop_options_class_init (GimpCropOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class,
GIMP_RECTANGLE_OPTIONS_PROP_HIGHLIGHT,
"highlight",
N_("Dim everything outside selection"),
_("Dim everything outside selection"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_LAYER_ONLY,
"layer-only",
N_("Crop only currently selected layer"),
_("Crop only currently selected layer"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ALLOW_GROWING,
"allow-growing",
N_("Allow resizing canvas by dragging cropping frame "
"beyond image boundary"),
_("Allow resizing canvas by dragging cropping frame "
"beyond image boundary"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -81,47 +81,47 @@ gimp_foreground_select_options_class_init (GimpForegroundSelectOptionsClass *kla
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DRAW_MODE,
"draw-mode",
N_("Paint over areas to mark color values for "
"inclusion or exclusion from selection"),
_("Paint over areas to mark color values for "
"inclusion or exclusion from selection"),
GIMP_TYPE_MATTING_DRAW_MODE,
GIMP_MATTING_DRAW_MODE_FOREGROUND,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_STROKE_WIDTH,
"stroke-width",
N_("Size of the brush used for refinements"),
_("Size of the brush used for refinements"),
1, 6000, 10,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_MASK_COLOR,
"mask-color",
N_("Color of selection preview mask"),
_("Color of selection preview mask"),
GIMP_TYPE_CHANNEL_TYPE,
GIMP_BLUE_CHANNEL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ENGINE,
"engine",
N_("Matting engine to use"),
_("Matting engine to use"),
GIMP_TYPE_MATTING_ENGINE,
GIMP_MATTING_ENGINE_GLOBAL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_LEVELS,
"levels",
N_("Parameter for matting-levin"),
_("Parameter for matting-levin"),
1, 10, 2,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ACTIVE_LEVELS,
"active-levels",
N_("Parameter for matting-levin"),
_("Parameter for matting-levin"),
1, 10, 2,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_ITERATIONS,
"iterations",
N_("Parameter for matting-global"),
_("Parameter for matting-global"),
1, 10, 2,
GIMP_PARAM_STATIC_STRINGS);
}
......
......@@ -77,14 +77,14 @@ gimp_magnify_options_class_init (GimpMagnifyOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_AUTO_RESIZE,
"auto-resize",
N_("Resize image window to accommodate "
"new zoom level"),
_("Resize image window to accommodate "
"new zoom level"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_ZOOM_TYPE,
"zoom-type",
N_("Direction of magnification"),
_("Direction of magnification"),
GIMP_TYPE_ZOOM_TYPE,
GIMP_ZOOM_IN,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -75,19 +75,19 @@ gimp_rectangle_select_options_class_init (GimpRectangleSelectOptionsClass *klass
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class,
GIMP_RECTANGLE_OPTIONS_PROP_HIGHLIGHT,
"highlight",
N_("Dim everything outside selection"),
_("Dim everything outside selection"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ROUND_CORNERS,
"round-corners",
N_("Round corners of selection"),
_("Round corners of selection"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CORNER_RADIUS,
"corner-radius",
N_("Radius of rounding in pixels"),
_("Radius of rounding in pixels"),
0.0, 100.0, 5.0,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -80,26 +80,26 @@ gimp_region_select_options_class_init (GimpRegionSelectOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SELECT_TRANSPARENT,
"select-transparent",
N_("Allow completely transparent regions "
"to be selected"),
_("Allow completely transparent regions "
"to be selected"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SAMPLE_MERGED,
"sample-merged",
N_("Base selection on all visible layers"),
_("Base selection on all visible layers"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_THRESHOLD,
"threshold",
N_("Maximum color difference"),
_("Maximum color difference"),
0.0, 255.0, 15.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_SELECT_CRITERION,
"select-criterion",
N_("Selection criterion"),
_("Selection criterion"),
GIMP_TYPE_SELECT_CRITERION,
GIMP_SELECT_CRITERION_COMPOSITE,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -69,7 +69,7 @@ gimp_seamless_clone_options_class_init (GimpSeamlessCloneOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_MAX_REFINE_STEPS,
"max-refine-steps",
N_("Maximal amount of refinement points to be used for the interpolation mesh"),
_("Maximal amount of refinement points to be used for the interpolation mesh"),
0, 100000, 2000,
GIMP_PARAM_STATIC_STRINGS);
}
......
......@@ -76,19 +76,19 @@ gimp_selection_options_class_init (GimpSelectionOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
"antialias",
N_("Smooth edges"),
_("Smooth edges"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_FEATHER,
"feather",
N_("Enable feathering of selection edges"),
_("Enable feathering of selection edges"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FEATHER_RADIUS,
"feather-radius",
N_("Radius of feathering"),
_("Radius of feathering"),
0.0, 100.0, 10.0,
GIMP_PARAM_STATIC_STRINGS);
}
......
......@@ -129,12 +129,12 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_UNIT (object_class, PROP_UNIT,
"font-size-unit",
N_("Font size unit"),
_("Font size unit"),
TRUE, FALSE, GIMP_UNIT_PIXEL,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_FONT_SIZE,
"font-size",
N_("Font size"),
_("Font size"),
0.0, 8192.0, 18.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_ANTIALIAS,
......@@ -143,16 +143,16 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_HINT_STYLE,
"hint-style",
N_("Hinting alters the font outline to "
"produce a crisp bitmap at small "
"sizes"),
_("Hinting alters the font outline to "
"produce a crisp bitmap at small "
"sizes"),
GIMP_TYPE_TEXT_HINT_STYLE,
GIMP_TEXT_HINT_STYLE_MEDIUM,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_STRING (object_class, PROP_LANGUAGE,
"language",
N_("The text language may have an effect "
"on the way the text is rendered."),
_("The text language may have an effect "
"on the way the text is rendered."),
(const gchar *) gtk_get_default_language (),
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BASE_DIR,
......@@ -162,40 +162,40 @@ gimp_text_options_class_init (GimpTextOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_JUSTIFICATION,
"justify",
N_("Text alignment"),
_("Text alignment"),
GIMP_TYPE_TEXT_JUSTIFICATION,
GIMP_TEXT_JUSTIFY_LEFT,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_INDENTATION,
"indent",
N_("Indentation of the first line"),
_("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"),
_("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"),
_("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_BOX_MODE,
"box-mode",
N_("Whether text flows into rectangular shape or "
"moves into a new line when you press Enter"),
_("Whether text flows into rectangular shape or "
"moves into a new line when you press Enter"),
GIMP_TYPE_TEXT_BOX_MODE,
GIMP_TEXT_BOX_DYNAMIC,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_USE_EDITOR,
"use-editor",
N_("Use an external editor window for text "
"entry"),
_("Use an external editor window for text "
"entry"),
FALSE,
GIMP_PARAM_STATIC_STRINGS);
......
......@@ -107,41 +107,42 @@ gimp_transform_options_class_init (GimpTransformOptionsClass *klass)
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_DIRECTION,
"direction",
N_("Direction of transformation"),
_("Direction of transformation"),
GIMP_TYPE_TRANSFORM_DIRECTION,
GIMP_TRANSFORM_FORWARD,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTERPOLATION,
"interpolation",
N_("Interpolation method"),
_("Interpolation method"),
GIMP_TYPE_INTERPOLATION_TYPE,
GIMP_INTERPOLATION_LINEAR,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_CLIP,
"clip",
N_("How to clip"),
_("How to clip"),
GIMP_TYPE_TRANSFORM_RESIZE,
GIMP_TRANSFORM_RESIZE_ADJUST,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_SHOW_PREVIEW,
"show-preview",
N_("Show a preview of the transformed image"),
_("Show a preview of the transformed image"),
TRUE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_PREVIEW_OPACITY,
"preview-opacity",
N_("Opacity of the preview image"),
_("Opacity of the preview image"),
0.0, 1.0, 1.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_GRID_TYPE,
"grid-type",
N_("Composition guides such as rule of thirds"),
_("Composition guides such as rule of thirds"),
GIMP_TYPE_GUIDES_TYPE,
GIMP_GUIDES_N_LINES,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_INT (object_class, PROP_GRID_SIZE,
"grid-size",
N_("Size of a grid cell for variable number of composition guides"),
_("Size of a grid cell for variable number "
"of composition guides"),
1, 128, 15,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_CONSTRAIN_MOVE,
......
......@@ -72,23 +72,26 @@ gimp_warp_options_class_init (GimpWarpOptionsClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BEHAVIOR,
"behavior",
N_("Behavior"),
_("Behavior"),
GIMP_TYPE_WARP_BEHAVIOR,
GIMP_WARP_BEHAVIOR_MOVE,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_STRENGTH,
"effect-strength", _("Effect Strength"),
"effect-strength",
_("Effect Strength"),
1.0, 100.0, 50.0,
GIMP_PARAM_STATIC_STRINGS);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_EFFECT_SIZE,
"effect-size", _("Effect Size"),
"effect-size",