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

Add a View -> Color Management submenu that allows to change
the color management mode per-display.

Internally, keep a GimpColorConfig object around per-display that
is synchronized with the global config except for the properties
that have a per-display GUI (currently the mode).

Also provide an "As in Preferences" menu item to follow the global
settings again.
This commit is contained in:
Michael Natterer
2016-05-14 23:50:58 +02:00
parent 388bf5d4ca
commit 406d1b9c65
9 changed files with 379 additions and 130 deletions

View File

@ -405,7 +405,7 @@ gimp_display_shell_constructed (GObject *object)
config = shell->display->config;
image = gimp_display_get_image (shell->display);
shell->color_config = g_object_ref (GIMP_CORE_CONFIG (config)->color_management);
gimp_display_shell_profile_init (shell);
if (image)
{
@ -817,13 +817,7 @@ gimp_display_shell_dispose (GObject *object)
shell->checkerboard = NULL;
}
if (shell->color_config)
{
g_object_unref (shell->color_config);
shell->color_config = NULL;
}
gimp_display_shell_profile_dispose (shell);
gimp_display_shell_profile_finalize (shell);
if (shell->filter_buffer)
{