gimp r27076 - in trunk: . app/core app/gegl
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27076 - in trunk: . app/core app/gegl
- Date: Mon, 29 Sep 2008 12:33:58 +0000 (UTC)
Author: mitch
Date: Mon Sep 29 12:33:58 2008
New Revision: 27076
URL: http://svn.gnome.org/viewvc/gimp?rev=27076&view=rev
Log:
2008-09-29 Michael Natterer <mitch gimp org>
* app/core/gimpcurve.c (gimp_curve_copy): no need to memcpy() the
arrays, they are properly copied by gimp_config_sync() now. Add
call to gimp_data_dirty() so GimpCurvesConfig gets notified.
* app/gegl/gimpcurvesconfig.c (gimp_curves_config_set_property):
use gimp_config_copy() instead of copying the curve menually.
Modified:
trunk/ChangeLog
trunk/app/core/gimpcurve.c
trunk/app/gegl/gimpcurvesconfig.c
Modified: trunk/app/core/gimpcurve.c
==============================================================================
--- trunk/app/core/gimpcurve.c (original)
+++ trunk/app/core/gimpcurve.c Mon Sep 29 12:33:58 2008
@@ -19,7 +19,6 @@
#include "config.h"
#include <stdlib.h>
-#include <string.h>
#include <glib-object.h>
@@ -503,14 +502,11 @@
gimp_config_sync (G_OBJECT (src), G_OBJECT (dest), flags);
- memcpy (dest_curve->points, src_curve->points,
- sizeof (GimpVector2) * src_curve->n_points);
- memcpy (dest_curve->samples, src_curve->samples,
- sizeof (gdouble) * src_curve->n_samples);
-
dest_curve->identity = src_curve->identity;
- return FALSE;
+ gimp_data_dirty (GIMP_DATA (dest));
+
+ return TRUE;
}
Modified: trunk/app/gegl/gimpcurvesconfig.c
==============================================================================
--- trunk/app/gegl/gimpcurvesconfig.c (original)
+++ trunk/app/gegl/gimpcurvesconfig.c Mon Sep 29 12:33:58 2008
@@ -21,8 +21,6 @@
#include "config.h"
-#include <string.h>
-
#include <gegl.h>
#include <glib/gstdio.h>
@@ -207,14 +205,8 @@
if (src_curve && dest_curve)
{
- gimp_config_sync (G_OBJECT (src_curve), G_OBJECT (dest_curve), 0);
-
- memcpy (dest_curve->points, src_curve->points,
- sizeof (GimpVector2) * src_curve->n_points);
- memcpy (dest_curve->samples, src_curve->samples,
- sizeof (gdouble) * src_curve->n_samples);
-
- dest_curve->identity = src_curve->identity;
+ gimp_config_copy (GIMP_CONFIG (src_curve),
+ GIMP_CONFIG (dest_curve), 0);
}
}
break;
@@ -340,8 +332,6 @@
flags);
}
- g_object_notify (G_OBJECT (dest), "curve");
-
dest_config->channel = src_config->channel;
g_object_notify (G_OBJECT (dest), "channel");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]