summaryrefslogtreecommitdiff
path: root/backends/oss/oss-switch-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/oss/oss-switch-option.c')
-rw-r--r--backends/oss/oss-switch-option.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/backends/oss/oss-switch-option.c b/backends/oss/oss-switch-option.c
index 544f321..cc3134c 100644
--- a/backends/oss/oss-switch-option.c
+++ b/backends/oss/oss-switch-option.c
@@ -29,20 +29,17 @@ struct _OssSwitchOptionPrivate
static void oss_switch_option_class_init (OssSwitchOptionClass *klass);
static void oss_switch_option_init (OssSwitchOption *option);
-G_DEFINE_TYPE (OssSwitchOption, oss_switch_option, MATE_MIXER_TYPE_SWITCH_OPTION)
+G_DEFINE_TYPE_WITH_PRIVATE (OssSwitchOption, oss_switch_option, MATE_MIXER_TYPE_SWITCH_OPTION)
static void
oss_switch_option_class_init (OssSwitchOptionClass *klass)
{
- g_type_class_add_private (G_OBJECT_CLASS (klass), sizeof (OssSwitchOptionPrivate));
}
static void
oss_switch_option_init (OssSwitchOption *option)
{
- option->priv = G_TYPE_INSTANCE_GET_PRIVATE (option,
- OSS_TYPE_SWITCH_OPTION,
- OssSwitchOptionPrivate);
+ option->priv = oss_switch_option_get_instance_private (option);
}
OssSwitchOption *