[gimp/soc-2009-dynamics] Remove member "name" from the GimpDynamics struct
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/soc-2009-dynamics] Remove member "name" from the GimpDynamics struct
- Date: Sun, 11 Oct 2009 11:19:33 +0000 (UTC)
commit 3438287f0344b96094aff06efd8a76599e3805ff
Author: Michael Natterer <mitch gimp org>
Date: Sun Oct 11 13:18:23 2009 +0200
Remove member "name" from the GimpDynamics struct
...and use GimpObject's name in GimpContext. Might be the last
bit to make the context's dynamics work completely.
app/core/gimpcontext.c | 4 ++--
app/core/gimpdynamics.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index ddd51b5..8218ea1 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -2518,7 +2518,7 @@ gimp_context_dynamics_dirty (GimpDynamics *dynamics,
GimpContext *context)
{
g_free (context->dynamics_name);
- context->dynamics_name = g_strdup (GIMP_DYNAMICS (dynamics)->name);
+ context->dynamics_name = g_strdup (gimp_object_get_name (dynamics));
}
static void
@@ -2597,7 +2597,7 @@ gimp_context_real_set_dynamics (GimpContext *context,
0);
if (dynamics != standard_dynamics)
- context->dynamics_name = g_strdup (GIMP_DYNAMICS (dynamics)->name);
+ context->dynamics_name = g_strdup (gimp_object_get_name (dynamics));
}
g_object_notify (G_OBJECT (context), "dynamics");
diff --git a/app/core/gimpdynamics.h b/app/core/gimpdynamics.h
index 432afd3..58deff4 100644
--- a/app/core/gimpdynamics.h
+++ b/app/core/gimpdynamics.h
@@ -54,8 +54,6 @@ struct _GimpDynamics
{
GimpData parent_instance;
- gchar *name;
-
GimpDynamicsOutput *opacity_dynamics;
GimpDynamicsOutput *hardness_dynamics;
GimpDynamicsOutput *rate_dynamics;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]