aboutsummaryrefslogtreecommitdiff
path: root/src/sound-service-dbus.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-26 16:08:46 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-26 16:08:46 -0600
commit8bbf7ea5805ed69a2d7450065a558398a623525f (patch)
tree00e929daa442a23616692c23060de8210bbcc995 /src/sound-service-dbus.c
parent39089ee365c3c36db7cd42f53d782ee938424b5a (diff)
downloadayatana-indicator-sound-8bbf7ea5805ed69a2d7450065a558398a623525f.tar.gz
ayatana-indicator-sound-8bbf7ea5805ed69a2d7450065a558398a623525f.tar.bz2
ayatana-indicator-sound-8bbf7ea5805ed69a2d7450065a558398a623525f.zip
blocking state now workings as expected
Diffstat (limited to 'src/sound-service-dbus.c')
-rw-r--r--src/sound-service-dbus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sound-service-dbus.c b/src/sound-service-dbus.c
index 2c1dc4f..3ecca38 100644
--- a/src/sound-service-dbus.c
+++ b/src/sound-service-dbus.c
@@ -258,8 +258,6 @@ sound_service_dbus_finalize (GObject *object)
return;
}
-// TODO until the pulsemanager has been refactored keep in place the consistent api
-// for it to talk to the UI.
void sound_service_dbus_update_volume(SoundServiceDbus* self,
gdouble volume)
{
@@ -323,6 +321,7 @@ static void sound_service_dbus_determine_state (SoundServiceDbus* self,
sound_service_dbus_update_sound_state (self, update);
}
+
// EMIT STATE SIGNAL
// TODO: this will be a bit messy until the pa_manager is sorted.
@@ -338,8 +337,9 @@ void sound_service_dbus_update_sound_state (SoundServiceDbus* self,
DBUSMENU_MUTE_MENUITEM_VALUE) == FALSE ){
update = sound_service_dbus_get_state_from_volume (self);
}
-
- priv->current_sound_state = update;
+ if (update != BLOCKED){
+ priv->current_sound_state = update;
+ }
GVariant* v_output = g_variant_new("(i)", (int)update);