summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-09 14:25:11 +0100
committerMichal Ratajsky <[email protected]>2014-11-09 14:25:11 +0100
commitd75596c2aec0c1a63b4eff788de1826fab601c64 (patch)
tree9b9cb5470a3bb971fd9fdc74bfb4a27290fbb65e /mate-volume-control
parent1621b391b6e108a4d3fc58b7df5aafb343de2405 (diff)
downloadmate-media-d75596c2aec0c1a63b4eff788de1826fab601c64.tar.bz2
mate-media-d75596c2aec0c1a63b4eff788de1826fab601c64.tar.xz
Update according to changes in libmatemixer
Diffstat (limited to 'mate-volume-control')
-rw-r--r--mate-volume-control/gvc-mixer-dialog.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/mate-volume-control/gvc-mixer-dialog.c b/mate-volume-control/gvc-mixer-dialog.c
index b6525fb..938c57a 100644
--- a/mate-volume-control/gvc-mixer-dialog.c
+++ b/mate-volume-control/gvc-mixer-dialog.c
@@ -143,13 +143,11 @@ find_stream_port_switch (MateMixerStream *stream)
switches = mate_mixer_stream_list_switches (stream);
while (switches != NULL) {
- MateMixerSwitch *swtch = MATE_MIXER_SWITCH (switches->data);
- MateMixerSwitchFlags flags;
+ MateMixerStreamSwitch *swtch = MATE_MIXER_STREAM_SWITCH (switches->data);
- flags = mate_mixer_switch_get_flags (swtch);
- if ((flags & MATE_MIXER_SWITCH_TOGGLE) == 0 &&
- mate_mixer_switch_get_role (swtch) == MATE_MIXER_SWITCH_ROLE_PORT)
- return swtch;
+ if (!MATE_MIXER_IS_TOGGLE (swtch) &&
+ mate_mixer_stream_switch_get_role (swtch) == MATE_MIXER_STREAM_SWITCH_ROLE_PORT)
+ return MATE_MIXER_SWITCH (swtch);
switches = switches->next;
}
@@ -163,10 +161,10 @@ find_device_profile_switch (MateMixerDevice *device)
switches = mate_mixer_device_list_switches (device);
while (switches != NULL) {
- MateMixerSwitch *swtch = MATE_MIXER_SWITCH (switches->data);
+ MateMixerDeviceSwitch *swtch = MATE_MIXER_DEVICE_SWITCH (switches->data);
- if (mate_mixer_switch_get_role (swtch) == MATE_MIXER_SWITCH_ROLE_DEVICE_PROFILE)
- return swtch;
+ if (mate_mixer_device_switch_get_role (swtch) == MATE_MIXER_DEVICE_SWITCH_ROLE_PROFILE)
+ return MATE_MIXER_SWITCH (swtch);
switches = switches->next;
}