diff options
author | Michal Ratajsky <[email protected]> | 2014-11-10 11:40:06 +0100 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-11-10 11:40:06 +0100 |
commit | 38a6d46a1058cd98466589427d5da704db7bfe09 (patch) | |
tree | 5d101d8862f26b8f2785b10f5781bf75e64d6300 /libmatemixer/matemixer-switch.c | |
parent | 6c1be9a4ad08f84235d4a1fcd4597bff910f59c4 (diff) | |
download | libmatemixer-38a6d46a1058cd98466589427d5da704db7bfe09.tar.bz2 libmatemixer-38a6d46a1058cd98466589427d5da704db7bfe09.tar.xz |
Change MateMixerSwitchFlags into MateMixerStreamSwitchFlags
Diffstat (limited to 'libmatemixer/matemixer-switch.c')
-rw-r--r-- | libmatemixer/matemixer-switch.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libmatemixer/matemixer-switch.c b/libmatemixer/matemixer-switch.c index d0f2691..b61f13a 100644 --- a/libmatemixer/matemixer-switch.c +++ b/libmatemixer/matemixer-switch.c @@ -34,7 +34,6 @@ struct _MateMixerSwitchPrivate { gchar *name; gchar *label; - MateMixerSwitchFlags flags; MateMixerSwitchOption *active; }; @@ -42,7 +41,6 @@ enum { PROP_0, PROP_NAME, PROP_LABEL, - PROP_FLAGS, PROP_ACTIVE_OPTION, N_PROPERTIES }; @@ -100,16 +98,6 @@ mate_mixer_switch_class_init (MateMixerSwitchClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); - properties[PROP_FLAGS] = - g_param_spec_flags ("flags", - "Flags", - "Flags of the switch", - MATE_MIXER_TYPE_SWITCH_FLAGS, - MATE_MIXER_SWITCH_NO_FLAGS, - G_PARAM_READWRITE | - G_PARAM_CONSTRUCT_ONLY | - G_PARAM_STATIC_STRINGS); - properties[PROP_ACTIVE_OPTION] = g_param_spec_object ("active-option", "Active option", @@ -141,9 +129,6 @@ mate_mixer_switch_get_property (GObject *object, case PROP_LABEL: g_value_set_string (value, swtch->priv->label); break; - case PROP_FLAGS: - g_value_set_flags (value, swtch->priv->flags); - break; case PROP_ACTIVE_OPTION: g_value_set_object (value, swtch->priv->active); break; @@ -173,9 +158,6 @@ mate_mixer_switch_set_property (GObject *object, /* Construct-only string */ swtch->priv->label = g_value_dup_string (value); break; - case PROP_FLAGS: - swtch->priv->flags = g_value_get_flags (value); - break; case PROP_ACTIVE_OPTION: /* Construct-only object */ swtch->priv->active = g_value_dup_object (value); @@ -259,23 +241,6 @@ mate_mixer_switch_get_label (MateMixerSwitch *swtch) } /** - * mate_mixer_switch_get_flags: - * @swtch: a #MateMixerSwitch - * - * Gets the flags of the switch. See #MateMixerSwitchFlags for information about - * the meaning of the individual flags. - * - * Returns: the flags of the switch. - */ -MateMixerSwitchFlags -mate_mixer_switch_get_flags (MateMixerSwitch *swtch) -{ - g_return_val_if_fail (MATE_MIXER_IS_SWITCH (swtch), MATE_MIXER_SWITCH_NO_FLAGS); - - return swtch->priv->flags; -} - -/** * mate_mixer_switch_get_option: * @swtch: a #MateMixerSwitch * @name: the name of an option |