[gimp] app: also reset the profile import policy when resetting color management
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: also reset the profile import policy when resetting color management
- Date: Sun, 25 Sep 2016 22:57:23 +0000 (UTC)
commit ec64dbb3b739fda40359c37a9a409e5e7a150fd6
Author: Michael Natterer <mitch gimp org>
Date: Mon Sep 26 00:56:40 2016 +0200
app: also reset the profile import policy when resetting color management
app/dialogs/preferences-dialog.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c
index 0017d94..37213e2 100644
--- a/app/dialogs/preferences-dialog.c
+++ b/app/dialogs/preferences-dialog.c
@@ -436,7 +436,10 @@ static void
prefs_color_management_reset (GtkWidget *widget,
GObject *config)
{
- gimp_config_reset (GIMP_CONFIG (config));
+ GimpCoreConfig *core_config = GIMP_CORE_CONFIG (config);
+
+ gimp_config_reset (GIMP_CONFIG (core_config->color_management));
+ gimp_config_reset_property (config, "color-profile-policy");
}
static void
@@ -1108,7 +1111,7 @@ prefs_dialog_new (Gimp *gimp,
_("Reset Color Management"));
g_signal_connect (button, "clicked",
G_CALLBACK (prefs_color_management_reset),
- core_config->color_management);
+ config);
{
GObject *color_config = G_OBJECT (core_config->color_management);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]