diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-11-07 10:57:50 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-11-10 11:00:34 +0100 |
commit | 5746547a809362b0cb12490418a0c5d979722a31 (patch) | |
tree | 86e43cbc698197d8e9899ea71bcf5007d5f8bb41 | |
parent | 89fddc1a339354450a2d525fe1dab2cc12ec1be7 (diff) | |
download | libsoup-5746547a809362b0cb12490418a0c5d979722a31.tar.gz |
content-decoder: port to the new private api
https://bugzilla.gnome.org/show_bug.cgi?id=774189
-rw-r--r-- | libsoup/soup-content-decoder.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libsoup/soup-content-decoder.c b/libsoup/soup-content-decoder.c index bce78c01..080904aa 100644 --- a/libsoup/soup-content-decoder.c +++ b/libsoup/soup-content-decoder.c @@ -63,6 +63,7 @@ static void soup_content_decoder_content_processor_init (SoupContentProcessorInt G_DEFINE_TYPE_WITH_CODE (SoupContentDecoder, soup_content_decoder, G_TYPE_OBJECT, + G_ADD_PRIVATE (SoupContentDecoder) G_IMPLEMENT_INTERFACE (SOUP_TYPE_SESSION_FEATURE, soup_content_decoder_session_feature_init) G_IMPLEMENT_INTERFACE (SOUP_TYPE_CONTENT_PROCESSOR, @@ -185,9 +186,7 @@ zlib_decoder_creator (void) static void soup_content_decoder_init (SoupContentDecoder *decoder) { - decoder->priv = G_TYPE_INSTANCE_GET_PRIVATE (decoder, - SOUP_TYPE_CONTENT_DECODER, - SoupContentDecoderPrivate); + decoder->priv = soup_content_decoder_get_instance_private (decoder); decoder->priv->decoders = g_hash_table_new (g_str_hash, g_str_equal); /* Hardcoded for now */ @@ -214,8 +213,6 @@ soup_content_decoder_class_init (SoupContentDecoderClass *decoder_class) { GObjectClass *object_class = G_OBJECT_CLASS (decoder_class); - g_type_class_add_private (decoder_class, sizeof (SoupContentDecoderPrivate)); - object_class->finalize = soup_content_decoder_finalize; } |