diff --git a/ChangeLog b/ChangeLog index 7aed25c9b5..4f23a398f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-06 Michael Natterer + + * libgimpconfig/gimpconfig-utils.c: don't cast the return value of + g_value_get_object(), it's a gpointer. + 2006-12-06 Michael Natterer * app/core/gimpbrush.c: made "spacing" a property. diff --git a/libgimpconfig/gimpconfig-utils.c b/libgimpconfig/gimpconfig-utils.c index 3d8ee46de5..6cc94e6882 100644 --- a/libgimpconfig/gimpconfig-utils.c +++ b/libgimpconfig/gimpconfig-utils.c @@ -51,7 +51,7 @@ gimp_config_diff_property (GObject *a, if (g_param_values_cmp (prop_spec, &a_value, &b_value)) { if ((prop_spec->flags & GIMP_CONFIG_PARAM_AGGREGATE) && - G_IS_PARAM_SPEC_OBJECT (prop_spec) && + G_IS_PARAM_SPEC_OBJECT (prop_spec) && g_type_interface_peek (g_type_class_peek (prop_spec->value_type), GIMP_TYPE_CONFIG)) { @@ -288,7 +288,7 @@ gimp_config_reset_properties (GObject *object) g_object_get_property (object, prop_spec->name, &value); - gimp_config_reset (GIMP_CONFIG (g_value_get_object (&value))); + gimp_config_reset (g_value_get_object (&value)); g_value_unset (&value); } @@ -354,7 +354,7 @@ gimp_config_reset_property (GObject *object, g_object_get_property (object, prop_spec->name, &value); - gimp_config_reset (GIMP_CONFIG (g_value_get_object (&value))); + gimp_config_reset (g_value_get_object (&value)); g_value_unset (&value); }