From 44651c5d2334da5dd295eca9c2e530b99348bdd6 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Sat, 8 Nov 2014 23:04:31 +0100 Subject: Split MateMixerSwitchRole into MateMixerDeviceSwitchRole and MateMixerStreamSwitchRole --- libmatemixer/matemixer-switch.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'libmatemixer/matemixer-switch.c') diff --git a/libmatemixer/matemixer-switch.c b/libmatemixer/matemixer-switch.c index 6466838..d0f2691 100644 --- a/libmatemixer/matemixer-switch.c +++ b/libmatemixer/matemixer-switch.c @@ -35,7 +35,6 @@ struct _MateMixerSwitchPrivate gchar *name; gchar *label; MateMixerSwitchFlags flags; - MateMixerSwitchRole role; MateMixerSwitchOption *active; }; @@ -44,7 +43,6 @@ enum { PROP_NAME, PROP_LABEL, PROP_FLAGS, - PROP_ROLE, PROP_ACTIVE_OPTION, N_PROPERTIES }; @@ -102,16 +100,6 @@ mate_mixer_switch_class_init (MateMixerSwitchClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); - properties[PROP_ROLE] = - g_param_spec_enum ("role", - "Role", - "Role of the switch", - MATE_MIXER_TYPE_SWITCH_ROLE, - MATE_MIXER_SWITCH_ROLE_UNKNOWN, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY | - G_PARAM_STATIC_STRINGS); - properties[PROP_FLAGS] = g_param_spec_flags ("flags", "Flags", @@ -156,9 +144,6 @@ mate_mixer_switch_get_property (GObject *object, case PROP_FLAGS: g_value_set_flags (value, swtch->priv->flags); break; - case PROP_ROLE: - g_value_set_enum (value, swtch->priv->role); - break; case PROP_ACTIVE_OPTION: g_value_set_object (value, swtch->priv->active); break; @@ -191,9 +176,6 @@ mate_mixer_switch_set_property (GObject *object, case PROP_FLAGS: swtch->priv->flags = g_value_get_flags (value); break; - case PROP_ROLE: - swtch->priv->role = g_value_get_enum (value); - break; case PROP_ACTIVE_OPTION: /* Construct-only object */ swtch->priv->active = g_value_dup_object (value); @@ -293,23 +275,6 @@ mate_mixer_switch_get_flags (MateMixerSwitch *swtch) return swtch->priv->flags; } -/** - * mate_mixer_switch_get_role: - * @swtch: a #MateMixerSwitch - * - * Gets the role of the switch. The role identifies the purpose of the switch. - - * Note that while the role identification should be reliable, it may be based on - * looking for well-known switch names on some sound systems. - */ -MateMixerSwitchRole -mate_mixer_switch_get_role (MateMixerSwitch *swtch) -{ - g_return_val_if_fail (MATE_MIXER_IS_SWITCH (swtch), MATE_MIXER_SWITCH_ROLE_UNKNOWN); - - return swtch->priv->role; -} - /** * mate_mixer_switch_get_option: * @swtch: a #MateMixerSwitch -- cgit v1.2.1