diff options
Diffstat (limited to 'libgupnp-dlna/gupnp-dlna-image-information.c')
-rw-r--r-- | libgupnp-dlna/gupnp-dlna-image-information.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/libgupnp-dlna/gupnp-dlna-image-information.c b/libgupnp-dlna/gupnp-dlna-image-information.c index 9d23038..aa36e14 100644 --- a/libgupnp-dlna/gupnp-dlna-image-information.c +++ b/libgupnp-dlna/gupnp-dlna-image-information.c @@ -47,14 +47,14 @@ #include "gupnp-dlna-image-information.h" -G_DEFINE_ABSTRACT_TYPE (GUPnPDLNAImageInformation, - gupnp_dlna_image_information, - G_TYPE_OBJECT) - struct _GUPnPDLNAImageInformationPrivate { gpointer placeholder; }; +G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GUPnPDLNAImageInformation, + gupnp_dlna_image_information, + G_TYPE_OBJECT) + static void gupnp_dlna_image_information_class_init (GUPnPDLNAImageInformationClass *info_class) @@ -63,18 +63,13 @@ gupnp_dlna_image_information_class_init info_class->get_height = NULL; info_class->get_width = NULL; info_class->get_mime = NULL; - - g_type_class_add_private (info_class, - sizeof (GUPnPDLNAImageInformationPrivate)); } static void gupnp_dlna_image_information_init (GUPnPDLNAImageInformation *info) { - GUPnPDLNAImageInformationPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE - (info, - GUPNP_TYPE_DLNA_IMAGE_INFORMATION, - GUPnPDLNAImageInformationPrivate); + GUPnPDLNAImageInformationPrivate *priv = + gupnp_dlna_image_information_get_instance_private (info); info->priv = priv; } |