mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
app: color manage GimpColorPanel and its color dialog
if a context is set on the panel.
This commit is contained in:
parent
2530b03f3c
commit
729c1edd45
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,8 @@
|
||||||
|
|
||||||
#include "widgets-types.h"
|
#include "widgets-types.h"
|
||||||
|
|
||||||
|
#include "config/gimpcoreconfig.h"
|
||||||
|
|
||||||
#include "core/gimp.h"
|
#include "core/gimp.h"
|
||||||
#include "core/gimpcontext.h"
|
#include "core/gimpcontext.h"
|
||||||
|
|
||||||
|
@ -248,6 +250,10 @@ gimp_color_panel_set_context (GimpColorPanel *panel,
|
||||||
g_return_if_fail (context == NULL || GIMP_IS_CONTEXT (context));
|
g_return_if_fail (context == NULL || GIMP_IS_CONTEXT (context));
|
||||||
|
|
||||||
panel->context = context;
|
panel->context = context;
|
||||||
|
|
||||||
|
if (context)
|
||||||
|
gimp_color_area_set_color_config (GIMP_COLOR_AREA (GIMP_COLOR_BUTTON (panel)->color_area),
|
||||||
|
context->gimp->config->color_management);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue