[clutter-gst] actor: expose clutter_gst_actor_new()



commit 095b3ebe6d6c3c8a961c75556925ab73bb8d53e5
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Sun Apr 14 18:21:50 2013 +0200

    actor: expose clutter_gst_actor_new()

 clutter-gst/clutter-gst-actor.c |   19 +++++++++++++++++++
 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]