[mousetweaks] Use new macro for boxed gtypes.
- From: Gerd Kohlberger <gerdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetweaks] Use new macro for boxed gtypes.
- Date: Fri, 3 Jun 2011 07:25:22 +0000 (UTC)
commit 7a5e53e40ec0201f78f5bd18e4c1031eccb05f73
Author: Gerd Kohlberger <gerdk src gnome org>
Date: Fri Jun 3 09:19:13 2011 +0200
Use new macro for boxed gtypes.
src/mt-listener.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/mt-listener.c b/src/mt-listener.c
index dfbc464..1025450 100644
--- a/src/mt-listener.c
+++ b/src/mt-listener.c
@@ -102,19 +102,7 @@ mt_event_free (MtEvent *event)
g_free (event);
}
-GType
-mt_event_get_type (void)
-{
- static GType event = 0;
-
- if (G_UNLIKELY (event == 0))
- {
- event = g_boxed_type_register_static (g_intern_static_string ("MtEvent"),
- (GBoxedCopyFunc) mt_event_copy,
- (GBoxedFreeFunc) mt_event_free);
- }
- return event;
-}
+G_DEFINE_BOXED_TYPE (MtEvent, mt_event, mt_event_copy, mt_event_free)
static void
mt_listener_emit_button_event (MtListener *listener,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]