diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-10-15 15:24:27 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-10-18 11:26:45 +0100 |
commit | 050e775da27209c5720d5ba8bffde786add562cd (patch) | |
tree | 134e12b3b251153462245dae83fe0f56976de80f /clutter/clutter-shader-effect.c | |
parent | 8429aa8d755b268975c2870978f8d8484f584542 (diff) | |
download | clutter-050e775da27209c5720d5ba8bffde786add562cd.tar.gz |
Move more classes to install_properties()
Diffstat (limited to 'clutter/clutter-shader-effect.c')
-rw-r--r-- | clutter/clutter-shader-effect.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/clutter/clutter-shader-effect.c b/clutter/clutter-shader-effect.c index 8b0de595c..9891499fc 100644 --- a/clutter/clutter-shader-effect.c +++ b/clutter/clutter-shader-effect.c @@ -436,9 +436,6 @@ clutter_shader_effect_class_init (ClutterShaderEffectClass *klass) g_type_class_add_private (klass, sizeof (ClutterShaderEffectPrivate)); - gobject_class->set_property = clutter_shader_effect_set_property; - gobject_class->finalize = clutter_shader_effect_finalize; - /** * ClutterShaderEffect:shader-type: * @@ -448,15 +445,19 @@ clutter_shader_effect_class_init (ClutterShaderEffectClass *klass) * * Since: 1.4 */ - pspec = g_param_spec_enum ("shader-type", - P_("Shader Type"), - P_("The type of shader used"), - CLUTTER_TYPE_SHADER_TYPE, - CLUTTER_FRAGMENT_SHADER, - CLUTTER_PARAM_WRITABLE | - G_PARAM_CONSTRUCT_ONLY); - obj_props[PROP_SHADER_TYPE] = pspec; - g_object_class_install_property (gobject_class, PROP_SHADER_TYPE, pspec); + obj_props[PROP_SHADER_TYPE] = + g_param_spec_enum ("shader-type", + P_("Shader Type"), + P_("The type of shader used"), + CLUTTER_TYPE_SHADER_TYPE, + CLUTTER_FRAGMENT_SHADER, + CLUTTER_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY); + + gobject_class->set_property = clutter_shader_effect_set_property; + gobject_class->finalize = clutter_shader_effect_finalize; + _clutter_object_class_install_properties (gobject_class, + PROP_LAST, + obj_props); meta_class->set_actor = clutter_shader_effect_set_actor; |