diff options
Diffstat (limited to 'backends/alsa/alsa-backend.c')
-rw-r--r-- | backends/alsa/alsa-backend.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/alsa/alsa-backend.c b/backends/alsa/alsa-backend.c index 45bee15..360d867 100644 --- a/backends/alsa/alsa-backend.c +++ b/backends/alsa/alsa-backend.c @@ -55,7 +55,11 @@ static void alsa_backend_finalize (GObject *object); #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-function" -G_DEFINE_DYNAMIC_TYPE (AlsaBackend, alsa_backend, MATE_MIXER_TYPE_BACKEND) +G_DEFINE_DYNAMIC_TYPE_EXTENDED (AlsaBackend, + alsa_backend, + MATE_MIXER_TYPE_BACKEND, + 0, + G_ADD_PRIVATE_DYNAMIC(AlsaBackend)) #pragma clang diagnostic pop static gboolean alsa_backend_open (MateMixerBackend *backend); @@ -125,8 +129,6 @@ alsa_backend_class_init (AlsaBackendClass *klass) backend_class->close = alsa_backend_close; backend_class->list_devices = alsa_backend_list_devices; backend_class->list_streams = alsa_backend_list_streams; - - g_type_class_add_private (object_class, sizeof (AlsaBackendPrivate)); } /* Called in the code generated by G_DEFINE_DYNAMIC_TYPE() */ @@ -138,9 +140,7 @@ alsa_backend_class_finalize (AlsaBackendClass *klass) static void alsa_backend_init (AlsaBackend *alsa) { - alsa->priv = G_TYPE_INSTANCE_GET_PRIVATE (alsa, - ALSA_TYPE_BACKEND, - AlsaBackendPrivate); + alsa->priv = alsa_backend_get_instance_private (alsa); alsa->priv->devices_ids = g_hash_table_new_full (g_str_hash, g_str_equal, |