diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-03-27 12:15:03 +0000 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2013-03-27 12:15:03 +0000 |
commit | 7b9affcbe92351127cec21151f82f20bf0f49578 (patch) | |
tree | 212e918b13772680c80a306b480bdb43ebe1e94a /clutter-gst/clutter-gst-types.c | |
parent | 3ebce92080647866cc60fe73cf5c5d7ce033538a (diff) | |
download | clutter-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.c | 21 |
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); |