diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-10-08 15:21:57 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-10-18 11:26:45 +0100 |
commit | 7dd09e21861bd1b7ceaea112b6e4fb69aeebbf1e (patch) | |
tree | 4ea4c7a636b0ffc0130273aff96bb94e35580eb8 /clutter/clutter-animator.c | |
parent | 09a830d2945456d882cbf8b326264041b172fea9 (diff) | |
download | clutter-7dd09e21861bd1b7ceaea112b6e4fb69aeebbf1e.tar.gz |
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.
Diffstat (limited to 'clutter/clutter-animator.c')
-rw-r--r-- | clutter/clutter-animator.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/clutter/clutter-animator.c b/clutter/clutter-animator.c index d34e27d65..61d930230 100644 --- a/clutter/clutter-animator.c +++ b/clutter/clutter-animator.c @@ -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: |