Bug 320447 - fast switching between "color managed display" and "softproof"

Replace the 3-state "off", "display" and "softproof" radio items by
two toggles "enable" and "softproof". Also add separate controls for
display and softproof options.
This commit is contained in:
Michael Natterer 2016-05-21 21:38:47 +02:00
parent 0f3e8ea116
commit dcf5c526e7
5 changed files with 329 additions and 188 deletions

View File

@ -75,6 +75,12 @@ static const GimpActionEntry view_actions[] =
{ "view-color-management-menu", NULL,
NC_("view-action", "_Color Management") },
{ "view-display-intent-menu", NULL,
NC_("view-action", "Display _Rendering Intent") },
{ "view-softproof-intent-menu", NULL,
NC_("view-action", "Simulation Re_ndering Intent") },
{ "view-move-to-screen-menu", GIMP_STOCK_MOVE_TO_SCREEN,
NC_("view-action", "Move to Screen"), NULL, NULL, NULL,
GIMP_HELP_VIEW_CHANGE_SCREEN },
@ -162,18 +168,39 @@ static const GimpToggleActionEntry view_toggle_actions[] =
TRUE,
GIMP_HELP_VIEW_DOT_FOR_DOT },
{ "view-color-management-black-point-compensation", NULL,
NC_("view-action", "_Black Point Compensation"), NULL,
NC_("view-action", "Use black point compensation"),
G_CALLBACK (view_color_management_bpc_cmd_callback),
{ "view-color-management-enable", NULL,
NC_("view-action", "_Color Manage this View"), NULL,
NC_("view-action", "Color manage this view"),
G_CALLBACK (view_color_management_enable_cmd_callback),
TRUE,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-gamut-check", NULL,
{ "view-color-management-softproof", NULL,
NC_("view-action", "_Print Simulation"), NULL,
NC_("view-action", "Use this view for softproofing"),
G_CALLBACK (view_color_management_softproof_cmd_callback),
FALSE,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-display-black-point-compensation", NULL,
NC_("view-action", "_Black Point Compensation"), NULL,
NC_("view-action", "Use black point compensation for image display"),
G_CALLBACK (view_display_bpc_cmd_callback),
TRUE,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-softproof-black-point-compensation", NULL,
NC_("view-action", "_Black Point Compensation"), NULL,
NC_("view-action", "Use black point compensation for softproofing"),
G_CALLBACK (view_softproof_bpc_cmd_callback),
TRUE,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-softproof-gamut-check", NULL,
NC_("view-action", "_Mark Out Of Gamut Colors"), NULL,
NC_("view-action", "When softproofing, mark colors which cannot "
"be represented in the target color space"),
G_CALLBACK (view_color_management_gamut_check_cmd_callback),
G_CALLBACK (view_softproof_gamut_check_cmd_callback),
FALSE,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
@ -484,50 +511,56 @@ static const GimpEnumActionEntry view_rotate_relative_actions[] =
GIMP_HELP_VIEW_ROTATE_345 }
};
static const GimpRadioActionEntry view_color_management_mode_actions[] =
static const GimpRadioActionEntry view_display_intent_actions[] =
{
{ "view-color-management-mode-off", NULL,
NC_("view-action", "_No Color Management"), NULL,
NC_("view-action", "Don't color manage this view"),
GIMP_COLOR_MANAGEMENT_OFF,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-mode-display", NULL,
NC_("view-action", "_Color Managed Display"), NULL,
NC_("view-action", "Color manage this view"),
GIMP_COLOR_MANAGEMENT_DISPLAY,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-mode-softproof", NULL,
NC_("view-action", "_Print Simulation"), NULL,
NC_("view-action", "Use this view for softproofing"),
GIMP_COLOR_MANAGEMENT_SOFTPROOF,
GIMP_HELP_VIEW_COLOR_MANAGEMENT }
};
static const GimpRadioActionEntry view_color_management_intent_actions[] =
{
{ "view-color-management-intent-perceptual", NULL,
{ "view-display-intent-perceptual", NULL,
NC_("view-action", "_Perceptual"), NULL,
NC_("view-action", "Rendering intent is perceptual"),
NC_("view-action", "Display rendering intent is perceptual"),
GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-intent-relative-colorimetric", NULL,
{ "view-display-intent-relative-colorimetric", NULL,
NC_("view-action", "_Relative Colorimetric"), NULL,
NC_("view-action", "Rendering intent is relative colorimetric"),
NC_("view-action", "Display rendering intent is relative colorimetric"),
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-intent-saturation", NULL,
{ "view-display-intent-saturation", NULL,
NC_("view-action", "_Saturation"), NULL,
NC_("view-action", "Rendering intent is saturation"),
NC_("view-action", "Display rendering intent is saturation"),
GIMP_COLOR_RENDERING_INTENT_SATURATION,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-color-management-intent-absolute-colorimetric", NULL,
{ "view-display-intent-absolute-colorimetric", NULL,
NC_("view-action", "_Absolute Colorimetric"), NULL,
NC_("view-action", "Rendering intent is absolute colorimetric"),
NC_("view-action", "Display rendering intent is absolute colorimetric"),
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC,
GIMP_HELP_VIEW_COLOR_MANAGEMENT }
};
static const GimpRadioActionEntry view_softproof_intent_actions[] =
{
{ "view-softproof-intent-perceptual", NULL,
NC_("view-action", "_Perceptual"), NULL,
NC_("view-action", "Softproof rendering intent is perceptual"),
GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-softproof-intent-relative-colorimetric", NULL,
NC_("view-action", "_Relative Colorimetric"), NULL,
NC_("view-action", "Softproof rendering intent is relative colorimetric"),
GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-softproof-intent-saturation", NULL,
NC_("view-action", "_Saturation"), NULL,
NC_("view-action", "Softproof rendering intent is saturation"),
GIMP_COLOR_RENDERING_INTENT_SATURATION,
GIMP_HELP_VIEW_COLOR_MANAGEMENT },
{ "view-softproof-intent-absolute-colorimetric", NULL,
NC_("view-action", "_Absolute Colorimetric"), NULL,
NC_("view-action", "Softproof rendering intent is absolute colorimetric"),
GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC,
GIMP_HELP_VIEW_COLOR_MANAGEMENT }
};
@ -683,18 +716,18 @@ view_actions_setup (GimpActionGroup *group)
G_CALLBACK (view_rotate_relative_cmd_callback));
gimp_action_group_add_radio_actions (group, "view-action",
view_color_management_mode_actions,
G_N_ELEMENTS (view_color_management_mode_actions),
view_display_intent_actions,
G_N_ELEMENTS (view_display_intent_actions),
NULL,
GIMP_COLOR_MANAGEMENT_DISPLAY,
G_CALLBACK (view_color_management_mode_cmd_callback));
G_CALLBACK (view_display_intent_cmd_callback));
gimp_action_group_add_radio_actions (group, "view-action",
view_color_management_intent_actions,
G_N_ELEMENTS (view_color_management_intent_actions),
view_softproof_intent_actions,
G_N_ELEMENTS (view_softproof_intent_actions),
NULL,
GIMP_COLOR_MANAGEMENT_DISPLAY,
G_CALLBACK (view_color_management_intent_cmd_callback));
G_CALLBACK (view_softproof_intent_cmd_callback));
gimp_action_group_add_enum_actions (group, "view-padding-color",
view_padding_color_actions,
@ -754,12 +787,13 @@ view_actions_update (GimpActionGroup *group,
gboolean flip_vertically = FALSE;
gboolean cm = FALSE;
gboolean sp = FALSE;
gboolean d_bpc = FALSE;
gboolean s_bpc = FALSE;
gboolean gammut = FALSE;
if (display)
{
GimpImageWindow *window;
GimpColorRenderingIntent intent = GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL;
gboolean bpc = TRUE;
const gchar *action = NULL;
image = gimp_display_get_image (display);
@ -783,56 +817,63 @@ view_actions_update (GimpActionGroup *group,
switch (color_config->mode)
{
case GIMP_COLOR_MANAGEMENT_OFF:
action = "view-color-management-mode-off";
break;
case GIMP_COLOR_MANAGEMENT_DISPLAY:
action = "view-color-management-mode-display";
intent = color_config->display_intent;
bpc = color_config->display_use_black_point_compensation;
cm = TRUE;
cm = (image != NULL);
break;
case GIMP_COLOR_MANAGEMENT_SOFTPROOF:
action = "view-color-management-mode-softproof";
intent = color_config->simulation_intent;
bpc = color_config->simulation_use_black_point_compensation;
cm = TRUE;
sp = TRUE;
cm = (image != NULL);
sp = (image != NULL);
break;
}
gimp_action_group_set_action_active (group, action, TRUE);
switch (intent)
switch (color_config->display_intent)
{
case GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL:
action = "view-color-management-intent-perceptual";
action = "view-display-intent-perceptual";
break;
case GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC:
action = "view-color-management-intent-relative-colorimetric";
action = "view-display-intent-relative-colorimetric";
break;
case GIMP_COLOR_RENDERING_INTENT_SATURATION:
action = "view-color-management-intent-saturation";
action = "view-display-intent-saturation";
break;
case GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC:
action = "view-color-management-intent-absolute-colorimetric";
action = "view-display-intent-absolute-colorimetric";
break;
}
gimp_action_group_set_action_active (group, action, TRUE);
gimp_action_group_set_action_active (group,
"view-color-management-black-point-compensation",
bpc);
gimp_action_group_set_action_active (group,
"view-color-management-gamut-check",
color_config->simulation_gamut_check);
switch (color_config->simulation_intent)
{
case GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL:
action = "view-softproof-intent-perceptual";
break;
case GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC:
action = "view-softproof-intent-relative-colorimetric";
break;
case GIMP_COLOR_RENDERING_INTENT_SATURATION:
action = "view-softproof-intent-saturation";
break;
case GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC:
action = "view-softproof-intent-absolute-colorimetric";
break;
}
gimp_action_group_set_action_active (group, action, TRUE);
d_bpc = color_config->display_use_black_point_compensation;
s_bpc = color_config->simulation_use_black_point_compensation;
gammut = color_config->simulation_gamut_check;
}
#define SET_ACTIVE(action,condition) \
@ -916,15 +957,24 @@ view_actions_update (GimpActionGroup *group,
SET_SENSITIVE ("view-navigation-window", image);
SET_SENSITIVE ("view-display-filters", image);
SET_SENSITIVE ("view-color-management-mode-off", image);
SET_SENSITIVE ("view-color-management-mode-display", image);
SET_SENSITIVE ("view-color-management-mode-softproof", image);
SET_SENSITIVE ("view-color-management-intent-perceptual", cm);
SET_SENSITIVE ("view-color-management-intent-relative-colorimetric", cm);
SET_SENSITIVE ("view-color-management-intent-saturation", cm);
SET_SENSITIVE ("view-color-management-intent-absolute-colorimetric", cm);
SET_SENSITIVE ("view-color-management-black-point-compensation", cm);
SET_SENSITIVE ("view-color-management-gamut-check", sp);
SET_SENSITIVE ("view-color-management-enable", image);
SET_ACTIVE ("view-color-management-enable", cm);
SET_SENSITIVE ("view-color-management-softproof", image);
SET_ACTIVE ("view-color-management-softproof", sp);
SET_SENSITIVE ("view-display-intent-perceptual", cm);
SET_SENSITIVE ("view-display-intent-relative-colorimetric", cm);
SET_SENSITIVE ("view-display-intent-saturation", cm);
SET_SENSITIVE ("view-display-intent-absolute-colorimetric", cm);
SET_SENSITIVE ("view-display-black-point-compensation", cm);
SET_ACTIVE ("view-display-black-point-compensation", d_bpc);
SET_SENSITIVE ("view-softproof-intent-perceptual", sp);
SET_SENSITIVE ("view-softproof-intent-relative-colorimetric", sp);
SET_SENSITIVE ("view-softproof-intent-saturation", sp);
SET_SENSITIVE ("view-softproof-intent-absolute-colorimetric", sp);
SET_SENSITIVE ("view-softproof-black-point-compensation", sp);
SET_ACTIVE ("view-softproof-black-point-compensation", s_bpc);
SET_SENSITIVE ("view-softproof-gamut-check", sp);
SET_ACTIVE ("view-softproof-gamut-check", gammut);
SET_SENSITIVE ("view-color-management-reset", image);
SET_SENSITIVE ("view-show-selection", image);

View File

@ -505,30 +505,77 @@ view_color_management_reset_cmd_callback (GtkAction *action,
}
void
view_color_management_mode_cmd_callback (GtkAction *action,
GtkAction *current,
view_color_management_enable_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
GimpColorManagementMode value;
GimpColorManagementMode mode;
gboolean active;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
if (value != color_config->mode)
mode = color_config->mode;
if (active)
{
if (mode != GIMP_COLOR_MANAGEMENT_SOFTPROOF)
mode = GIMP_COLOR_MANAGEMENT_DISPLAY;
}
else
{
mode = GIMP_COLOR_MANAGEMENT_OFF;
}
if (mode != color_config->mode)
{
g_object_set (color_config,
"mode", value,
"mode", mode,
NULL);
shell->color_config_set = TRUE;
}
}
void
view_color_management_intent_cmd_callback (GtkAction *action,
view_color_management_softproof_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
GimpColorManagementMode mode;
gboolean active;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
mode = color_config->mode;
if (active)
{
mode = GIMP_COLOR_MANAGEMENT_SOFTPROOF;
}
else
{
if (mode != GIMP_COLOR_MANAGEMENT_OFF)
mode = GIMP_COLOR_MANAGEMENT_DISPLAY;
}
if (mode != color_config->mode)
{
g_object_set (color_config,
"mode", mode,
NULL);
shell->color_config_set = TRUE;
}
}
void
view_display_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data)
{
@ -541,9 +588,6 @@ view_color_management_intent_cmd_callback (GtkAction *action,
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
switch (color_config->mode)
{
case GIMP_COLOR_MANAGEMENT_DISPLAY:
if (value != color_config->display_intent)
{
g_object_set (color_config,
@ -551,9 +595,22 @@ view_color_management_intent_cmd_callback (GtkAction *action,
NULL);
shell->color_config_set = TRUE;
}
break;
}
void
view_softproof_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
GimpColorRenderingIntent value;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
case GIMP_COLOR_MANAGEMENT_SOFTPROOF:
if (value != color_config->simulation_intent)
{
g_object_set (color_config,
@ -561,15 +618,10 @@ view_color_management_intent_cmd_callback (GtkAction *action,
NULL);
shell->color_config_set = TRUE;
}
break;
default:
break;
}
}
void
view_color_management_bpc_cmd_callback (GtkAction *action,
view_display_bpc_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;
@ -581,9 +633,6 @@ view_color_management_bpc_cmd_callback (GtkAction *action,
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
switch (color_config->mode)
{
case GIMP_COLOR_MANAGEMENT_DISPLAY:
if (active != color_config->display_use_black_point_compensation)
{
g_object_set (color_config,
@ -591,9 +640,21 @@ view_color_management_bpc_cmd_callback (GtkAction *action,
NULL);
shell->color_config_set = TRUE;
}
break;
}
void
view_softproof_bpc_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
gboolean active;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
case GIMP_COLOR_MANAGEMENT_SOFTPROOF:
if (active != color_config->simulation_use_black_point_compensation)
{
g_object_set (color_config,
@ -601,15 +662,10 @@ view_color_management_bpc_cmd_callback (GtkAction *action,
NULL);
shell->color_config_set = TRUE;
}
break;
default:
break;
}
}
void
view_color_management_gamut_check_cmd_callback (GtkAction *action,
view_softproof_gamut_check_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;

View File

@ -71,17 +71,23 @@ void view_display_filters_cmd_callback (GtkAction *action,
void view_color_management_reset_cmd_callback (GtkAction *action,
gpointer data);
void view_color_management_mode_cmd_callback (GtkAction *action,
GtkAction *current,
void view_color_management_enable_cmd_callback(GtkAction *action,
gpointer data);
void view_color_management_intent_cmd_callback(GtkAction *action,
GtkAction *current,
gpointer data);
void view_color_management_bpc_cmd_callback (GtkAction *action,
gpointer data);
void view_color_management_gamut_check_cmd_callback
void view_color_management_softproof_cmd_callback
(GtkAction *action,
gpointer data);
void view_display_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data);
void view_display_bpc_cmd_callback (GtkAction *action,
gpointer data);
void view_softproof_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data);
void view_softproof_bpc_cmd_callback (GtkAction *action,
gpointer data);
void view_softproof_gamut_check_cmd_callback (GtkAction *action,
gpointer data);
void view_toggle_selection_cmd_callback (GtkAction *action,
gpointer data);

View File

@ -257,9 +257,8 @@ gimp_display_shell_color_config_notify (GimpColorConfig *config,
! strcmp (pspec->name, "simulation-use-black-point-compensation") ||
! strcmp (pspec->name, "simulation-gamut-check"))
{
GimpColorRenderingIntent intent = GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL;
gboolean managed = TRUE;
gboolean bpc = TRUE;
gboolean managed = FALSE;
gboolean softproof = FALSE;
const gchar *action = NULL;
#define SET_SENSITIVE(action, sensitive) \
@ -271,61 +270,83 @@ gimp_display_shell_color_config_notify (GimpColorConfig *config,
switch (config->mode)
{
case GIMP_COLOR_MANAGEMENT_OFF:
action = "view-color-management-mode-off";
managed = FALSE;
break;
case GIMP_COLOR_MANAGEMENT_DISPLAY:
action = "view-color-management-mode-display";
intent = config->display_intent;
bpc = config->display_use_black_point_compensation;
managed = TRUE;
break;
case GIMP_COLOR_MANAGEMENT_SOFTPROOF:
action = "view-color-management-mode-softproof";
intent = config->simulation_intent;
bpc = config->simulation_use_black_point_compensation;
managed = TRUE;
softproof = TRUE;
break;
}
SET_ACTIVE (action, TRUE);
SET_ACTIVE ("view-color-management-enable", managed);
SET_ACTIVE ("view-color-management-softproof", softproof);
switch (intent)
switch (config->display_intent)
{
case GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL:
action = "view-color-management-intent-perceptual";
action = "view-display-intent-perceptual";
break;
case GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC:
action = "view-color-management-intent-relative-colorimetric";
action = "view-display-intent-relative-colorimetric";
break;
case GIMP_COLOR_RENDERING_INTENT_SATURATION:
action = "view-color-management-intent-saturation";
action = "view-display-intent-saturation";
break;
case GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC:
action = "view-color-management-intent-absolute-colorimetric";
action = "view-display-intent-absolute-colorimetric";
break;
}
SET_SENSITIVE ("view-color-management-intent-perceptual",
managed);
SET_SENSITIVE ("view-color-management-intent-relative-colorimetric",
managed);
SET_SENSITIVE ("view-color-management-intent-saturation",
managed);
SET_SENSITIVE ("view-color-management-intent-absolute-colorimetric",
managed);
SET_SENSITIVE ("view-display-intent-perceptual", managed);
SET_SENSITIVE ("view-display-intent-relative-colorimetric", managed);
SET_SENSITIVE ("view-display-intent-saturation", managed);
SET_SENSITIVE ("view-display-intent-absolute-colorimetric", managed);
SET_ACTIVE (action, TRUE);
SET_SENSITIVE ("view-color-management-black-point-compensation", managed);
SET_ACTIVE ("view-color-management-black-point-compensation", bpc);
SET_SENSITIVE ("view-display-black-point-compensation", managed);
SET_ACTIVE ("view-display-black-point-compensation",
config->display_use_black_point_compensation);
SET_SENSITIVE ("view-color-management-gamut-check",
config->mode == GIMP_COLOR_MANAGEMENT_SOFTPROOF);
SET_ACTIVE ("view-color-management-gamut-check",
switch (config->simulation_intent)
{
case GIMP_COLOR_RENDERING_INTENT_PERCEPTUAL:
action = "view-softproof-intent-perceptual";
break;
case GIMP_COLOR_RENDERING_INTENT_RELATIVE_COLORIMETRIC:
action = "view-softproof-intent-relative-colorimetric";
break;
case GIMP_COLOR_RENDERING_INTENT_SATURATION:
action = "view-softproof-intent-saturation";
break;
case GIMP_COLOR_RENDERING_INTENT_ABSOLUTE_COLORIMETRIC:
action = "view-softproof-intent-absolute-colorimetric";
break;
}
SET_SENSITIVE ("view-softproof-intent-perceptual", softproof);
SET_SENSITIVE ("view-softproof-intent-relative-colorimetric", softproof);
SET_SENSITIVE ("view-softproof-intent-saturation", softproof);
SET_SENSITIVE ("view-softproof-intent-absolute-colorimetric", softproof);
SET_ACTIVE (action, TRUE);
SET_SENSITIVE ("view-softproof-black-point-compensation", softproof);
SET_ACTIVE ("view-softproof-black-point-compensation",
config->simulation_use_black_point_compensation);
SET_SENSITIVE ("view-softproof-gamut-check", softproof);
SET_ACTIVE ("view-softproof-gamut-check",
config->simulation_gamut_check);
}

View File

@ -302,17 +302,25 @@
<menuitem action="view-navigation-window" />
<menuitem action="view-display-filters" />
<menu action="view-color-management-menu" name="Color Management">
<menuitem action="view-color-management-mode-off" />
<menuitem action="view-color-management-mode-display" />
<menuitem action="view-color-management-mode-softproof" />
<menuitem action="view-color-management-enable" />
<menuitem action="view-color-management-softproof" />
<separator />
<menuitem action="view-color-management-intent-perceptual" />
<menuitem action="view-color-management-intent-relative-colorimetric" />
<menuitem action="view-color-management-intent-saturation" />
<menuitem action="view-color-management-intent-absolute-colorimetric" />
<menu action="view-display-intent-menu" name="Display Rendering Intent">
<menuitem action="view-display-intent-perceptual" />
<menuitem action="view-display-intent-relative-colorimetric" />
<menuitem action="view-display-intent-saturation" />
<menuitem action="view-display-intent-absolute-colorimetric" />
</menu>
<menuitem action="view-display-black-point-compensation" />
<separator />
<menuitem action="view-color-management-black-point-compensation" />
<menuitem action="view-color-management-gamut-check" />
<menu action="view-softproof-intent-menu" name="Softproof Rendering Intent">
<menuitem action="view-softproof-intent-perceptual" />
<menuitem action="view-softproof-intent-relative-colorimetric" />
<menuitem action="view-softproof-intent-saturation" />
<menuitem action="view-softproof-intent-absolute-colorimetric" />
</menu>
<menuitem action="view-softproof-black-point-compensation" />
<menuitem action="view-softproof-gamut-check" />
<separator />
<menuitem action="view-color-management-reset" />
</menu>