diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-03 15:04:05 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-03 15:23:38 +0100 |
commit | 2f377dab66ef074497ff0630508535716d369cb7 (patch) | |
tree | e328498fe35f39ee6062d2ec5ee728167b973f24 /telepathy-glib/handle-set.c | |
parent | fd81730d9c9b79ddd165fb6b0f02268b72e0b811 (diff) | |
download | telepathy-glib-2f377dab66ef074497ff0630508535716d369cb7.tar.gz |
Use G_DEFINE_BOXED_TYPE for every boxed type except TpIntset
TpIntset is a bit weird because of backwards compatibility with TpIntSet,
so we can only replace that one on next.
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/handle-set.c')
-rw-r--r-- | telepathy-glib/handle-set.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/telepathy-glib/handle-set.c b/telepathy-glib/handle-set.c index d2c72c4eb..ef4011225 100644 --- a/telepathy-glib/handle-set.c +++ b/telepathy-glib/handle-set.c @@ -53,21 +53,8 @@ struct _TpHandleSet * Since: 0.11.6 */ -GType -tp_handle_set_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - type = g_boxed_type_register_static ( - g_intern_static_string ("TpHandleSet"), - (GBoxedCopyFunc) tp_handle_set_copy, - (GBoxedFreeFunc) tp_handle_set_destroy); - } - - return type; -} +G_DEFINE_BOXED_TYPE (TpHandleSet, tp_handle_set, tp_handle_set_copy, + tp_handle_set_destroy) /** * tp_handle_set_new: (skip) |