summaryrefslogtreecommitdiff
path: root/clutter/clutter-event.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-10-08 15:21:57 +0100
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-10-18 11:26:45 +0100
commit7dd09e21861bd1b7ceaea112b6e4fb69aeebbf1e (patch)
tree4ea4c7a636b0ffc0130273aff96bb94e35580eb8 /clutter/clutter-event.c
parent09a830d2945456d882cbf8b326264041b172fea9 (diff)
downloadclutter-7dd09e21861bd1b7ceaea112b6e4fb69aeebbf1e.tar.gz
Use G_DEFINE_BOXED_TYPE for all boxed types
We actually need a couple more macros for registering GValue transformation functions. Those should be added to upstream GLib.
Diffstat (limited to 'clutter/clutter-event.c')
-rw-r--r--clutter/clutter-event.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c
index ef1f703e0..b62293281 100644
--- a/clutter/clutter-event.c
+++ b/clutter/clutter-event.c
@@ -51,6 +51,10 @@ typedef struct _ClutterEventPrivate {
static GHashTable *all_events = NULL;
+G_DEFINE_BOXED_TYPE (ClutterEvent, clutter_event,
+ clutter_event_copy,
+ clutter_event_free);
+
static gboolean
is_event_allocated (const ClutterEvent *event)
{
@@ -630,18 +634,6 @@ clutter_event_get_device (const ClutterEvent *event)
return device;
}
-GType
-clutter_event_get_type (void)
-{
- static GType our_type = 0;
-
- if (!our_type)
- our_type = g_boxed_type_register_static (I_("ClutterEvent"),
- (GBoxedCopyFunc) clutter_event_copy,
- (GBoxedFreeFunc) clutter_event_free);
- return our_type;
-}
-
/**
* clutter_event_new:
* @type: The type of event.