Use G_DEFINE_BOXED_TYPE for all boxed types

We actually need a couple more macros for registering GValue
transformation functions. Those should be added to upstream
GLib.
This commit is contained in:
Emmanuele Bassi
2010-10-08 15:21:57 +01:00
parent 09a830d294
commit 7dd09e2186
13 changed files with 123 additions and 280 deletions

View File

@ -1989,19 +1989,9 @@ clutter_animator_property_set_interpolation (ClutterAnimator *animator,
}
}
GType
clutter_animator_key_get_type (void)
{
static GType our_type = 0;
if (!our_type)
our_type = g_boxed_type_register_static (I_("ClutterAnimatorKey"),
clutter_animator_key_copy,
clutter_animator_key_free);
return our_type;
}
G_DEFINE_BOXED_TYPE (ClutterAnimatorKey, clutter_animator_key,
clutter_animator_key_copy,
clutter_animator_key_free);
/**
* clutter_animator_key_get_object: