summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-speaker-test.c
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-08-18 21:06:59 +0200
committerinfirit <[email protected]>2014-10-09 16:53:01 +0200
commit97facb3e1a1183a872b77bb18e2636b5ec68f1f5 (patch)
tree68c65328833340846d5c2960ba7b4bb1264e98d8 /mate-volume-control/src/gvc-speaker-test.c
parent94bf8fd464923b7a55d3b6447962d91af4c6f09e (diff)
downloadmate-media-97facb3e1a1183a872b77bb18e2636b5ec68f1f5.tar.bz2
mate-media-97facb3e1a1183a872b77bb18e2636b5ec68f1f5.tar.xz
Global update
Diffstat (limited to 'mate-volume-control/src/gvc-speaker-test.c')
-rw-r--r--mate-volume-control/src/gvc-speaker-test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mate-volume-control/src/gvc-speaker-test.c b/mate-volume-control/src/gvc-speaker-test.c
index 61fd510..d43b6cf 100644
--- a/mate-volume-control/src/gvc-speaker-test.c
+++ b/mate-volume-control/src/gvc-speaker-test.c
@@ -42,7 +42,6 @@ struct _GvcSpeakerTestPrivate
{
GArray *controls;
ca_context *canberra;
- MateMixerControl *control;
MateMixerStream *stream;
};
@@ -98,16 +97,18 @@ gvc_speaker_test_get_stream (GvcSpeakerTest *test)
static void
gvc_speaker_test_set_stream (GvcSpeakerTest *test, MateMixerStream *stream)
{
- guint i;
- const gchar *name;
+ MateMixerStreamControl *control;
+ const gchar *name;
+ guint i;
name = mate_mixer_stream_get_name (stream);
+ control = mate_mixer_stream_get_default_control (stream);
ca_context_change_device (test->priv->canberra, name);
for (i = 0; i < G_N_ELEMENTS (positions); i++) {
gboolean has_position =
- mate_mixer_stream_has_channel_position (stream, positions[i].position);
+ mate_mixer_stream_control_has_channel_position (control, positions[i].position);
gtk_widget_set_visible (g_array_index (test->priv->controls, GtkWidget *, i),
has_position);