[libsoup/wip/withprivate: 25/26] io-stream: port to the new private api
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/withprivate: 25/26] io-stream: port to the new private api
- Date: Mon, 7 Nov 2016 15:08:13 +0000 (UTC)
commit 248de147b083ba6a060f5f7ddf90df4eb59be3e2
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 7 11:22:15 2016 +0100
io-stream: port to the new private api
libsoup/soup-io-stream.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libsoup/soup-io-stream.c b/libsoup/soup-io-stream.c
index 62daaa0..9c77b26 100644
--- a/libsoup/soup-io-stream.c
+++ b/libsoup/soup-io-stream.c
@@ -29,14 +29,12 @@ enum {
PROP_CLOSE_ON_DISPOSE
};
-G_DEFINE_TYPE (SoupIOStream, soup_io_stream, G_TYPE_IO_STREAM)
+G_DEFINE_TYPE_WITH_PRIVATE (SoupIOStream, soup_io_stream, G_TYPE_IO_STREAM)
static void
soup_io_stream_init (SoupIOStream *stream)
{
- stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream,
- SOUP_TYPE_IO_STREAM,
- SoupIOStreamPrivate);
+ stream->priv = soup_io_stream_get_instance_private (stream);
}
static void
@@ -181,8 +179,6 @@ soup_io_stream_class_init (SoupIOStreamClass *stream_class)
GObjectClass *object_class = G_OBJECT_CLASS (stream_class);
GIOStreamClass *io_stream_class = G_IO_STREAM_CLASS (stream_class);
- g_type_class_add_private (stream_class, sizeof (SoupIOStreamPrivate));
-
object_class->set_property = soup_io_stream_set_property;
object_class->get_property = soup_io_stream_get_property;
object_class->dispose = soup_io_stream_dispose;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]