app/config/gimcoreconfig.[ch] removed references to the unused gamma

2003-11-15  Sven Neumann  <sven@gimp.org>

	* app/config/gimcoreconfig.[ch]
	* app/plug-in/plug-in-run.c (plug_in_run): removed references to the
	unused gamma value. If we ever implement proper gamma correction, we
	will need individual gamma values for each channel anyway.
This commit is contained in:
Sven Neumann 2003-11-15 20:56:07 +00:00 committed by Sven Neumann
parent 50e8667b63
commit a0ee48c396
6 changed files with 10 additions and 16 deletions

View File

@ -1,3 +1,10 @@
2003-11-15 Sven Neumann <sven@gimp.org>
* app/config/gimcoreconfig.[ch]
* app/plug-in/plug-in-run.c (plug_in_run): removed references to the
unused gamma value. If we ever implement proper gamma correction, we
will need individual gamma values for each channel anyway.
2003-11-15 Sven Neumann <sven@gimp.org>
* libgimp/gimpui.c (gimp_ui_init): reverted Yosh's change and

View File

@ -93,7 +93,6 @@ enum
PROP_LAYER_PREVIEWS,
PROP_LAYER_PREVIEW_SIZE,
PROP_THUMBNAIL_SIZE,
PROP_GAMMA_CORRECTION,
PROP_INSTALL_COLORMAP,
PROP_MIN_COLORS
};
@ -244,11 +243,6 @@ gimp_core_config_class_init (GimpCoreConfigClass *klass)
GIMP_TYPE_THUMBNAIL_SIZE,
GIMP_THUMBNAIL_SIZE_NORMAL,
0);
GIMP_CONFIG_INSTALL_PROP_DOUBLE (object_class, PROP_GAMMA_CORRECTION,
"gamma-correction",
GAMMA_CORRECTION_BLURB,
0.0, 100.0, 1.0,
0);
GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_INSTALL_COLORMAP,
"install-colormap", INSTALL_COLORMAP_BLURB,
FALSE,
@ -402,9 +396,6 @@ gimp_core_config_set_property (GObject *object,
case PROP_THUMBNAIL_SIZE:
core_config->thumbnail_size = g_value_get_enum (value);
break;
case PROP_GAMMA_CORRECTION:
core_config->gamma_val = g_value_get_double (value);
break;
case PROP_INSTALL_COLORMAP:
core_config->install_cmap = g_value_get_boolean (value);
break;
@ -496,9 +487,6 @@ gimp_core_config_get_property (GObject *object,
case PROP_THUMBNAIL_SIZE:
g_value_set_enum (value, core_config->thumbnail_size);
break;
case PROP_GAMMA_CORRECTION:
g_value_set_double (value, core_config->gamma_val);
break;
case PROP_INSTALL_COLORMAP:
g_value_set_boolean (value, core_config->install_cmap);
break;

View File

@ -62,7 +62,6 @@ struct _GimpCoreConfig
gboolean layer_previews;
GimpPreviewSize layer_preview_size;
GimpThumbnailSize thumbnail_size;
gdouble gamma_val;
gboolean install_cmap;
gint min_colors;
};

View File

@ -98,7 +98,7 @@ plug_in_run (Gimp *gimp,
config.tile_width = TILE_WIDTH;
config.tile_height = TILE_HEIGHT;
config.shm_ID = plug_in_shm_get_ID (gimp);
config.gamma = gimp->config->gamma_val;
config.gamma = 1.0;
config.install_cmap = gimp->config->install_cmap;
config.show_tool_tips = GIMP_GUI_CONFIG (gimp->config)->show_tool_tips;
config.min_colors = CLAMP (gimp->config->min_colors, 27, 256);

View File

@ -98,7 +98,7 @@ plug_in_run (Gimp *gimp,
config.tile_width = TILE_WIDTH;
config.tile_height = TILE_HEIGHT;
config.shm_ID = plug_in_shm_get_ID (gimp);
config.gamma = gimp->config->gamma_val;
config.gamma = 1.0;
config.install_cmap = gimp->config->install_cmap;
config.show_tool_tips = GIMP_GUI_CONFIG (gimp->config)->show_tool_tips;
config.min_colors = CLAMP (gimp->config->min_colors, 27, 256);

View File

@ -98,7 +98,7 @@ plug_in_run (Gimp *gimp,
config.tile_width = TILE_WIDTH;
config.tile_height = TILE_HEIGHT;
config.shm_ID = plug_in_shm_get_ID (gimp);
config.gamma = gimp->config->gamma_val;
config.gamma = 1.0;
config.install_cmap = gimp->config->install_cmap;
config.show_tool_tips = GIMP_GUI_CONFIG (gimp->config)->show_tool_tips;
config.min_colors = CLAMP (gimp->config->min_colors, 27, 256);