summaryrefslogtreecommitdiff
path: root/libmatemixer/matemixer-switch.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-08 23:04:31 +0100
committerMichal Ratajsky <[email protected]>2014-11-08 23:04:31 +0100
commit44651c5d2334da5dd295eca9c2e530b99348bdd6 (patch)
treeff27dab4ba61563bf04442d7d2c5f0547e2dbaea /libmatemixer/matemixer-switch.c
parent068d95e1c28b0e20e692c5ecb24f044542e82ae9 (diff)
downloadlibmatemixer-44651c5d2334da5dd295eca9c2e530b99348bdd6.tar.bz2
libmatemixer-44651c5d2334da5dd295eca9c2e530b99348bdd6.tar.xz
Split MateMixerSwitchRole into MateMixerDeviceSwitchRole and MateMixerStreamSwitchRole
Diffstat (limited to 'libmatemixer/matemixer-switch.c')
-rw-r--r--libmatemixer/matemixer-switch.c35
1 files changed, 0 insertions, 35 deletions
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);
@@ -294,23 +276,6 @@ mate_mixer_switch_get_flags (MateMixerSwitch *swtch)
}
/**
- * 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
* @name: the name of an option