[gimp] app: fix saving of the settings' timestamp in color tool config classes



commit 657a2661b25b90af45d6ad09d2362c3ed6648ec8
Author: Michael Natterer <mitch gimp org>
Date:   Mon Apr 2 11:49:22 2012 +0200

    app: fix saving of the settings' timestamp in color tool config classes
    
    we override serialize_property() and are responsible for doing it
    ourselves.

 app/gegl/gimpcolorbalanceconfig.c  |    3 +++
 app/gegl/gimpcurvesconfig.c        |    3 +++
 app/gegl/gimphuesaturationconfig.c |    3 +++
 app/gegl/gimplevelsconfig.c        |    3 +++
 4 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/app/gegl/gimpcolorbalanceconfig.c b/app/gegl/gimpcolorbalanceconfig.c
index 05f9749..141bfa2 100644
--- a/app/gegl/gimpcolorbalanceconfig.c
+++ b/app/gegl/gimpcolorbalanceconfig.c
@@ -219,6 +219,9 @@ gimp_color_balance_config_serialize (GimpConfig       *config,
   GimpTransferMode        old_range;
   gboolean                success = TRUE;
 
+  if (! gimp_config_serialize_property_by_name (config, "time", writer))
+    return FALSE;
+
   old_range = bc_config->range;
 
   for (range = GIMP_SHADOWS; range <= GIMP_HIGHLIGHTS; range++)
diff --git a/app/gegl/gimpcurvesconfig.c b/app/gegl/gimpcurvesconfig.c
index 745e387..6bb96f9 100644
--- a/app/gegl/gimpcurvesconfig.c
+++ b/app/gegl/gimpcurvesconfig.c
@@ -229,6 +229,9 @@ gimp_curves_config_serialize (GimpConfig       *config,
   GimpHistogramChannel  old_channel;
   gboolean              success = TRUE;
 
+  if (! gimp_config_serialize_property_by_name (config, "time", writer))
+    return FALSE;
+
   old_channel = c_config->channel;
 
   for (channel = GIMP_HISTOGRAM_VALUE;
diff --git a/app/gegl/gimphuesaturationconfig.c b/app/gegl/gimphuesaturationconfig.c
index a2486d7..a7c1cba 100644
--- a/app/gegl/gimphuesaturationconfig.c
+++ b/app/gegl/gimphuesaturationconfig.c
@@ -217,6 +217,9 @@ gimp_hue_saturation_config_serialize (GimpConfig       *config,
   GimpHueRange             old_range;
   gboolean                 success = TRUE;
 
+  if (! gimp_config_serialize_property_by_name (config, "time", writer))
+    return FALSE;
+
   old_range = hs_config->range;
 
   for (range = GIMP_ALL_HUES; range <= GIMP_MAGENTA_HUES; range++)
diff --git a/app/gegl/gimplevelsconfig.c b/app/gegl/gimplevelsconfig.c
index d78240c..81f52d8 100644
--- a/app/gegl/gimplevelsconfig.c
+++ b/app/gegl/gimplevelsconfig.c
@@ -247,6 +247,9 @@ gimp_levels_config_serialize (GimpConfig       *config,
   GimpHistogramChannel  old_channel;
   gboolean              success = TRUE;
 
+  if (! gimp_config_serialize_property_by_name (config, "time", writer))
+    return FALSE;
+
   old_channel = l_config->channel;
 
   for (channel = GIMP_HISTOGRAM_VALUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]