aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-03-12 18:07:48 +0000
committerConor Curran <conor.curran@canonical.com>2010-03-12 18:07:48 +0000
commit5dc32749af6b8281efcf94970fcb9f4863d93163 (patch)
tree45b1895d9cce2ac019bb0692a0793ba958c09c70 /src/pulse-manager.c
parent9a406f66da19e50b576f7a9614093af5e5873550 (diff)
downloadayatana-indicator-sound-5dc32749af6b8281efcf94970fcb9f4863d93163.tar.gz
ayatana-indicator-sound-5dc32749af6b8281efcf94970fcb9f4863d93163.tar.bz2
ayatana-indicator-sound-5dc32749af6b8281efcf94970fcb9f4863d93163.zip
this race condition is tricky one
Diffstat (limited to 'src/pulse-manager.c')
-rw-r--r--src/pulse-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse-manager.c b/src/pulse-manager.c
index 40add4e..e1634a9 100644
--- a/src/pulse-manager.c
+++ b/src/pulse-manager.c
@@ -67,8 +67,8 @@ void establish_pulse_activities(SoundServiceDbus *service)
// Establish event callback registration
pa_context_set_state_callback(pulse_context, context_state_callback, NULL);
- // BUILD MENU ANYWHO - it will be updated
- dbus_menu_manager_update_pa_state(FALSE, FALSE, FALSE, 0);
+ // Broadcast init state (assume we have a device - if not the signals will handle it)
+ dbus_menu_manager_update_pa_state(FALSE, TRUE, FALSE, 0);
pa_context_connect(pulse_context, NULL, PA_CONTEXT_NOFAIL, NULL);
}