summaryrefslogtreecommitdiff
path: root/backends/pulse/pulse-ext-stream.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-06-30 17:33:00 +0800
committerraveit65 <[email protected]>2019-07-02 13:51:06 +0200
commit498b37841f36c86a27b75b97a4fc22053da94ffa (patch)
treef532a529031101a189b9668794bf23929d77f699 /backends/pulse/pulse-ext-stream.c
parentceedb3408e9f12f1b36ad98218fee69960eb47e8 (diff)
downloadlibmatemixer-498b37841f36c86a27b75b97a4fc22053da94ffa.tar.bz2
libmatemixer-498b37841f36c86a27b75b97a4fc22053da94ffa.tar.xz
pulse: avoid deprecated g_type_class_add_private
Diffstat (limited to 'backends/pulse/pulse-ext-stream.c')
-rw-r--r--backends/pulse/pulse-ext-stream.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/backends/pulse/pulse-ext-stream.c b/backends/pulse/pulse-ext-stream.c
index e99fbb1..ab7d982 100644
--- a/backends/pulse/pulse-ext-stream.c
+++ b/backends/pulse/pulse-ext-stream.c
@@ -64,7 +64,7 @@ static void pulse_ext_stream_init (PulseExtStream *ext);
static void pulse_ext_stream_dispose (GObject *object);
static void pulse_ext_stream_finalize (GObject *object);
-G_DEFINE_TYPE (PulseExtStream, pulse_ext_stream, MATE_MIXER_TYPE_STORED_CONTROL)
+G_DEFINE_TYPE_WITH_PRIVATE (PulseExtStream, pulse_ext_stream, MATE_MIXER_TYPE_STORED_CONTROL)
static MateMixerAppInfo * pulse_ext_stream_get_app_info (MateMixerStreamControl *mmsc);
@@ -159,8 +159,6 @@ pulse_ext_stream_class_init (PulseExtStreamClass *klass)
G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
-
- g_type_class_add_private (object_class, sizeof (PulseExtStreamPrivate));
}
static void
@@ -214,9 +212,7 @@ pulse_ext_stream_set_property (GObject *object,
static void
pulse_ext_stream_init (PulseExtStream *ext)
{
- ext->priv = G_TYPE_INSTANCE_GET_PRIVATE (ext,
- PULSE_TYPE_EXT_STREAM,
- PulseExtStreamPrivate);
+ ext->priv = pulse_ext_stream_get_instance_private (ext);
}
static void