[gimp] app: color manage GimpColorPanel and its color dialog
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: color manage GimpColorPanel and its color dialog
- Date: Sun, 29 May 2016 19:55:13 +0000 (UTC)
commit 729c1edd45436e50bfd2e5532bbbb5ab72ea246c
Author: Michael Natterer <mitch gimp org>
Date: Sun May 29 21:54:39 2016 +0200
app: color manage GimpColorPanel and its color dialog
if a context is set on the panel.
app/widgets/gimpcolorpanel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcolorpanel.c b/app/widgets/gimpcolorpanel.c
index 0eb7e65..dbc4e62 100644
--- a/app/widgets/gimpcolorpanel.c
+++ b/app/widgets/gimpcolorpanel.c
@@ -25,6 +25,8 @@
#include "widgets-types.h"
+#include "config/gimpcoreconfig.h"
+
#include "core/gimp.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));
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]