diff options
author | Wu Xiaotian <[email protected]> | 2019-06-30 17:33:00 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-02 13:51:06 +0200 |
commit | 498b37841f36c86a27b75b97a4fc22053da94ffa (patch) | |
tree | f532a529031101a189b9668794bf23929d77f699 /backends/pulse/pulse-stream.c | |
parent | ceedb3408e9f12f1b36ad98218fee69960eb47e8 (diff) | |
download | libmatemixer-498b37841f36c86a27b75b97a4fc22053da94ffa.tar.bz2 libmatemixer-498b37841f36c86a27b75b97a4fc22053da94ffa.tar.xz |
pulse: avoid deprecated g_type_class_add_private
Diffstat (limited to 'backends/pulse/pulse-stream.c')
-rw-r--r-- | backends/pulse/pulse-stream.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/backends/pulse/pulse-stream.c b/backends/pulse/pulse-stream.c index 50b821e..fa795ee 100644 --- a/backends/pulse/pulse-stream.c +++ b/backends/pulse/pulse-stream.c @@ -58,7 +58,7 @@ static void pulse_stream_set_property (GObject *object, static void pulse_stream_init (PulseStream *stream); static void pulse_stream_dispose (GObject *object); -G_DEFINE_ABSTRACT_TYPE (PulseStream, pulse_stream, MATE_MIXER_TYPE_STREAM) +G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (PulseStream, pulse_stream, MATE_MIXER_TYPE_STREAM) static void pulse_stream_class_init (PulseStreamClass *klass) @@ -91,8 +91,6 @@ pulse_stream_class_init (PulseStreamClass *klass) G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, N_PROPERTIES, properties); - - g_type_class_add_private (object_class, sizeof (PulseStreamPrivate)); } static void @@ -144,9 +142,7 @@ pulse_stream_set_property (GObject *object, static void pulse_stream_init (PulseStream *stream) { - stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream, - PULSE_TYPE_STREAM, - PulseStreamPrivate); + stream->priv = pulse_stream_get_instance_private (stream); } static void |