Commit d5ee3653 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

don't cast the return value of g_value_get_object(), it's a gpointer.

2006-12-06  Michael Natterer  <mitch@gimp.org>

	* libgimpconfig/gimpconfig-utils.c: don't cast the return value of
	g_value_get_object(), it's a gpointer.
parent 7515d9b6
2006-12-06 Michael Natterer <mitch@gimp.org>
* libgimpconfig/gimpconfig-utils.c: don't cast the return value of
g_value_get_object(), it's a gpointer.
2006-12-06 Michael Natterer <mitch@gimp.org>
* app/core/gimpbrush.c: made "spacing" a property.
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment