summaryrefslogtreecommitdiff
path: root/clutter-gst/clutter-gst-types.c
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2013-03-27 12:15:03 +0000
committerLionel Landwerlin <llandwerlin@gmail.com>2013-03-27 12:15:03 +0000
commit7b9affcbe92351127cec21151f82f20bf0f49578 (patch)
tree212e918b13772680c80a306b480bdb43ebe1e94a /clutter-gst/clutter-gst-types.c
parent3ebce92080647866cc60fe73cf5c5d7ce033538a (diff)
downloadclutter-gst-7b9affcbe92351127cec21151f82f20bf0f49578.tar.gz
Introduce ClutterGstBox to replace usage of (soon to be deprecated) ClutterActorBox
https://bugzilla.gnome.org/show_bug.cgi?id=696630
Diffstat (limited to 'clutter-gst/clutter-gst-types.c')
-rw-r--r--clutter-gst/clutter-gst-types.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-types.c b/clutter-gst/clutter-gst-types.c
index c4b7204..00b8a1b 100644
--- a/clutter-gst/clutter-gst-types.c
+++ b/clutter-gst/clutter-gst-types.c
@@ -77,3 +77,24 @@ G_DEFINE_BOXED_TYPE (ClutterGstFrame,
clutter_gst_frame,
clutter_gst_frame_copy,
clutter_gst_frame_free);
+
+static ClutterGstBox *
+clutter_gst_box_copy (const ClutterGstBox *box)
+{
+ if (G_LIKELY (box != NULL))
+ return g_slice_dup (ClutterGstBox, box);
+
+ return NULL;
+}
+
+static void
+clutter_gst_box_free (ClutterGstBox *box)
+{
+ if (G_LIKELY (box != NULL))
+ g_slice_free (ClutterGstBox, box);
+}
+
+G_DEFINE_BOXED_TYPE (ClutterGstBox,
+ clutter_gst_box,
+ clutter_gst_box_copy,
+ clutter_gst_box_free);