diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-04-14 18:21:50 +0200 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-04-14 18:21:50 +0200 |
commit | 095b3ebe6d6c3c8a961c75556925ab73bb8d53e5 (patch) | |
tree | fdfaa92579f0e56f78d9e6ffa5b9ecbf76e46794 | |
parent | 612ea5be954e3824b01ec11161c9167dc32f45b1 (diff) | |
download | clutter-gst-095b3ebe6d6c3c8a961c75556925ab73bb8d53e5.tar.gz |
actor: expose clutter_gst_actor_new()
-rw-r--r-- | clutter-gst/clutter-gst-actor.c | 19 | ||||
-rw-r--r-- | clutter-gst/clutter-gst-actor.h | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-actor.c b/clutter-gst/clutter-gst-actor.c index 82e9196..9b06255 100644 --- a/clutter-gst/clutter-gst-actor.c +++ b/clutter-gst/clutter-gst-actor.c @@ -271,6 +271,25 @@ clutter_gst_actor_init (ClutterGstActor *actor) */ /** + * clutter_gst_actor_new: + * + * Creates a new #ClutterGstActor. + * + * A newly created actor has a floating reference, which will be sunk + * when it is added to another actor. + * + * Return value: the newly created #ClutterGstActor + * + * Since: 3.0 + */ +ClutterActor * +clutter_gst_actor_new (void) +{ + return g_object_new (CLUTTER_GST_TYPE_ACTOR, + NULL); +} + +/** * clutter_gst_actor_get_player: * @self: a #ClutterGstActor * diff --git a/clutter-gst/clutter-gst-actor.h b/clutter-gst/clutter-gst-actor.h index baf4b8b..bce9e77 100644 --- a/clutter-gst/clutter-gst-actor.h +++ b/clutter-gst/clutter-gst-actor.h @@ -109,6 +109,8 @@ struct _ClutterGstActorClass GType clutter_gst_actor_get_type (void) G_GNUC_CONST; +ClutterActor *clutter_gst_actor_new (void); + ClutterGstPlayer *clutter_gst_actor_get_player (ClutterGstActor *self); void clutter_gst_actor_set_player (ClutterGstActor *self, ClutterGstPlayer *player); |