[cheese] Use G_DEFINE_BOXED_TYPE for CheeseVideoFormat
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Use G_DEFINE_BOXED_TYPE for CheeseVideoFormat
- Date: Sun, 25 Dec 2011 11:07:41 +0000 (UTC)
commit 12ed0dce60e9d65913b67b7f24a5e480677a09e4
Author: David King <amigadave amigadave com>
Date: Sun Dec 25 11:37:14 2011 +0100
Use G_DEFINE_BOXED_TYPE for CheeseVideoFormat
libcheese/cheese-camera-device.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/libcheese/cheese-camera-device.c b/libcheese/cheese-camera-device.c
index 809b2f9..09be79c 100644
--- a/libcheese/cheese-camera-device.c
+++ b/libcheese/cheese-camera-device.c
@@ -138,18 +138,8 @@ cheese_video_format_free (CheeseVideoFormat *format)
g_slice_free (CheeseVideoFormat, format);
}
-GType
-cheese_video_format_get_type (void)
-{
- static GType our_type = 0;
-
- if (G_UNLIKELY (our_type == 0))
- our_type =
- g_boxed_type_register_static ("CheeseVideoFormat",
- (GBoxedCopyFunc) cheese_video_format_copy,
- (GBoxedFreeFunc) cheese_video_format_free);
- return our_type;
-}
+G_DEFINE_BOXED_TYPE (CheeseVideoFormat, cheese_video_format,
+ cheese_video_format_copy, cheese_video_format_free)
/* the rest */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]