Fix some compile errors

This commit is contained in:
Alexia Death 2009-09-28 20:30:03 +03:00
parent 749ed2212d
commit bb18654483
2 changed files with 5 additions and 2 deletions

View File

@ -2521,7 +2521,7 @@ gimp_context_dynamics_dirty (GimpDynamicsOptions *dynamics,
GimpContext *context)
{
g_free (context->dynamics_name);
context->dynamics_name = g_strdup (GIMP_OBJECT (dynamics)->name);
context->dynamics_name = g_strdup (GIMP_DYNAMICS (dynamics)->name);
}
static void gimp_context_dynamics_removed (GimpContainer *container,
@ -2596,7 +2596,7 @@ gimp_context_real_set_dynamics (GimpContext *context,
0);
if (dynamics != standard_dynamics)
context->dynamics_name = g_strdup (GIMP_OBJECT (dynamics)->name);
context->dynamics_name = g_strdup (GIMP_DYNAMICS (dynamics)->name);
}
g_object_notify (G_OBJECT (context), "dynamics");

View File

@ -26,6 +26,7 @@ typedef struct _GimpDynamicsOutput GimpDynamicsOutput;
struct _GimpDynamicsOutput
{
gboolean pressure;
gboolean velocity;
gboolean direction;
@ -63,6 +64,8 @@ struct _GimpDynamics
{
GimpDataClass parent_instance;
gchar *name;
GimpDynamicsOutput* opacity_dynamics;
GimpDynamicsOutput* hardness_dynamics;
GimpDynamicsOutput* rate_dynamics;