aboutsummaryrefslogtreecommitdiff
path: root/src/dictzip-input-stream.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2020-04-15 06:56:58 +0200
committerPřemysl Janouch <p@janouch.name>2020-04-15 07:00:36 +0200
commit1289c98ca8e3ec32f133a284569ea09ba7be4d1e (patch)
treeee0790ba9a38e0f381b28a4c5682845f0ca78716 /src/dictzip-input-stream.c
parentfcc0c3ef2d90603776c915335ed8bacf678cb278 (diff)
downloadtdv-1289c98ca8e3ec32f133a284569ea09ba7be4d1e.tar.gz
tdv-1289c98ca8e3ec32f133a284569ea09ba7be4d1e.tar.xz
tdv-1289c98ca8e3ec32f133a284569ea09ba7be4d1e.zip
Bump to GLib 2.38 because of deprecation warnings
Diffstat (limited to 'src/dictzip-input-stream.c')
-rw-r--r--src/dictzip-input-stream.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dictzip-input-stream.c b/src/dictzip-input-stream.c
index 2c97ba6..6c0eb04 100644
--- a/src/dictzip-input-stream.c
+++ b/src/dictzip-input-stream.c
@@ -294,6 +294,7 @@ struct dictzip_input_stream_private
G_DEFINE_TYPE_EXTENDED (DictzipInputStream, dictzip_input_stream,
G_TYPE_FILTER_INPUT_STREAM, 0,
+ G_ADD_PRIVATE (DictzipInputStream)
G_IMPLEMENT_INTERFACE (G_TYPE_SEEKABLE, dictzip_input_stream_seekable_init))
static gboolean seekable_true (G_GNUC_UNUSED GSeekable *x) { return TRUE; }
@@ -312,8 +313,6 @@ dictzip_input_stream_seekable_init
static void
dictzip_input_stream_class_init (DictzipInputStreamClass *klass)
{
- g_type_class_add_private (klass, sizeof (DictzipInputStreamPrivate));
-
GInputStreamClass *stream_class = G_INPUT_STREAM_CLASS (klass);
stream_class->read_fn = dictzip_input_stream_read;
stream_class->skip = dictzip_input_stream_skip;
@@ -325,8 +324,7 @@ dictzip_input_stream_class_init (DictzipInputStreamClass *klass)
static void
dictzip_input_stream_init (DictzipInputStream *self)
{
- self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
- DICTZIP_TYPE_INPUT_STREAM, DictzipInputStreamPrivate);
+ self->priv = dictzip_input_stream_get_instance_private (self);
}
static void