aboutsummaryrefslogtreecommitdiff
path: root/src/active-sink.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-04 17:31:16 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-04 17:31:16 +0000
commit39430b4d1797d16b2152fddb864a38c26f8fb97f (patch)
tree571aa0291b7b02559fd2ec2f18efedd0031c50ac /src/active-sink.c
parent025fb0a3df226ab127ee435c341882addfafcbba (diff)
downloadayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.tar.gz
ayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.tar.bz2
ayatana-indicator-sound-39430b4d1797d16b2152fddb864a38c26f8fb97f.zip
putting in back together
Diffstat (limited to 'src/active-sink.c')
-rw-r--r--src/active-sink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/active-sink.c b/src/active-sink.c
index b84e03f..1aa6c67 100644
--- a/src/active-sink.c
+++ b/src/active-sink.c
@@ -117,6 +117,7 @@ active_sink_populate (ActiveSink* sink,
pa_volume_t vol = pa_cvolume_max (&update->volume);
gdouble volume_percent = ((gdouble) vol * 100) / PA_VOLUME_NORM;
active_sink_update_volume (sink, volume_percent);
+ g_debug ("Active sink has been populated - volume %f", volume_percent);
}
gboolean
@@ -145,8 +146,11 @@ active_sink_update_volume (ActiveSink* self, gdouble percent)
{
ActiveSinkPrivate* priv = ACTIVE_SINK_GET_PRIVATE (self);
slider_menu_item_update (priv->volume_slider_menuitem, percent);
+
+ priv->current_sound_state = active_sink_get_state_from_volume (self);
+
sound_service_dbus_update_sound_state (priv->service,
- active_sink_get_state_from_volume (self));
+ priv->current_sound_state);
}
void
@@ -159,6 +163,7 @@ active_sink_update_mute (ActiveSink* self, gboolean muted)
if (muted == TRUE){
state = MUTED;
}
+ priv->current_sound_state = state;
sound_service_dbus_update_sound_state (priv->service, state);
}