Commit 2d80597f authored by Sven Neumann's avatar Sven Neumann

As Mitch pointed out, these are not static strings. Reverted my previous

changes to the modules directory.
parent 7b24dd8e
......@@ -22,15 +22,8 @@
* libgimpwidgets/gimppageselector.c
* libgimpwidgets/gimppreview.c
* libgimpwidgets/gimppreviewarea.c
* libgimpwidgets/gimpzoommodel.c
* modules/cdisplay_colorblind.c
* modules/cdisplay_gamma.c
* modules/cdisplay_highcontrast.c
* modules/cdisplay_lcms.c
* modules/cdisplay_proof.c
* modules/controller_linux_input.c
* modules/controller_midi.c: use the GIMP_PARAM defines to avoid
unnecessary string allocations.
* libgimpwidgets/gimpzoommodel.c: use the GIMP_PARAM defines to
avoid unnecessary string allocations.
2006-01-29 Michael Natterer <mitch@gimp.org>
......
......@@ -285,7 +285,7 @@ cdisplay_colorblind_class_init (CdisplayColorblindClass *klass)
"deficiency", NULL,
CDISPLAY_TYPE_COLORBLIND_DEFICIENCY,
DEFAULT_DEFICIENCY,
GIMP_PARAM_STATIC_STRINGS);
0);
display_class->name = _("Color Deficient Vision");
display_class->help_id = "gimp-colordisplay-colorblind";
......
......@@ -155,7 +155,7 @@ cdisplay_gamma_class_init (CdisplayGammaClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GAMMA,
"gamma", NULL,
0.01, 10.0, DEFAULT_GAMMA,
GIMP_PARAM_STATIC_STRINGS);
0);
display_class->name = _("Gamma");
display_class->help_id = "gimp-colordisplay-gamma";
......
......@@ -155,7 +155,7 @@ cdisplay_contrast_class_init (CdisplayContrastClass *klass)
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_CONTRAST,
"contrast", NULL,
0.01, 10.0, DEFAULT_CONTRAST,
GIMP_PARAM_STATIC_STRINGS);
0);
display_class->name = _("Contrast");
display_class->help_id = "gimp-colordisplay-contrast";
......
......@@ -168,7 +168,7 @@ cdisplay_lcms_class_init (CdisplayLcmsClass *klass)
GIMP_CONFIG_INSTALL_PROP_OBJECT (object_class, PROP_CONFIG,
"config", NULL,
GIMP_TYPE_COLOR_CONFIG,
GIMP_PARAM_STATIC_STRINGS);
0);
display_class->name = _("Color Management");
display_class->help_id = "gimp-colordisplay-lcms";
......
......@@ -208,15 +208,15 @@ cdisplay_proof_class_init (CdisplayProofClass *klass)
GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_INTENT,
"intent", NULL,
CDISPLAY_TYPE_PROOF_INTENT, INTENT_PERCEPTUAL,
GIMP_PARAM_STATIC_STRINGS);
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_BPC,
"black-point-compensation", NULL,
FALSE,
GIMP_PARAM_STATIC_STRINGS);
0);
GIMP_CONFIG_INSTALL_PROP_PATH (object_class, PROP_PROFILE,
"profile", NULL,
GIMP_CONFIG_PATH_FILE, NULL,
GIMP_PARAM_STATIC_STRINGS);
0);
display_class->name = _("Color Proof");
display_class->help_id = "gimp-colordisplay-proof";
......
......@@ -222,7 +222,6 @@ linux_input_class_init (ControllerLinuxInputClass *klass)
_("Device:"),
_("The name of the device to read Linux Input events from."),
NULL,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_FLAGS));
controller_class->name = _("Linux Input");
......
......@@ -244,7 +244,6 @@ midi_class_init (ControllerMidiClass *klass)
_("Device:"),
blurb,
NULL,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_FLAGS));
g_free (blurb);
......@@ -254,7 +253,6 @@ midi_class_init (ControllerMidiClass *klass)
_("Channel:"),
_("The MIDI channel to read events from. Set to -1 for reading from all MIDI channels."),
-1, 15, -1,
GIMP_PARAM_STATIC_STRINGS |
GIMP_CONFIG_PARAM_FLAGS));
controller_class->name = _("MIDI");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment