[gimp/soc-2009-dynamics] Make saving work. sortof.



commit 72e976cca697cf5a06980e031b91a5889eba98b5
Author: Alexia Death <alexiadeath gmail com>
Date:   Sat Oct 10 20:46:06 2009 +0300

    Make saving work. sortof.

 app/core/gimpdynamics.c |    4 ++++
 app/core/gimpdynamics.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/app/core/gimpdynamics.c b/app/core/gimpdynamics.c
index aa7b9f0..36e66a4 100644
--- a/app/core/gimpdynamics.c
+++ b/app/core/gimpdynamics.c
@@ -31,6 +31,7 @@
 #include "gimpcurve.h"
 
 #include "gimpdynamics.h"
+#include "gimpdynamics-save.h"
 
 #include "gimpdata.h"
 #include "gimp-intl.h"
@@ -185,12 +186,15 @@ static void
 gimp_dynamics_class_init (GimpDynamicsClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
+  GimpDataClass     *data_class        = GIMP_DATA_CLASS (klass);
 
   object_class->finalize     = gimp_dynamics_finalize;
   object_class->set_property = gimp_dynamics_set_property;
   object_class->get_property = gimp_dynamics_get_property;
   object_class->notify       = gimp_dynamics_notify;
 
+  data_class->save                 = gimp_dynamics_save;
+
   GIMP_CONFIG_INSTALL_PROP_BOOLEAN (object_class, PROP_PRESSURE_OPACITY,
                                     "pressure-opacity", NULL,
                                     DEFAULT_PRESSURE_OPACITY,
diff --git a/app/core/gimpdynamics.h b/app/core/gimpdynamics.h
index ae93b22..f5cdfa9 100644
--- a/app/core/gimpdynamics.h
+++ b/app/core/gimpdynamics.h
@@ -57,7 +57,7 @@ typedef struct _GimpDynamics GimpDynamics;
 
 struct _GimpDynamics
 {
-  GimpDataClass        parent_instance;
+  GimpData             parent_instance;
 
   gchar               *name;
 



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