diff options
author | Conor Curran <conor.curran@canonical.com> | 2011-01-26 16:40:38 -0600 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2011-01-26 16:40:38 -0600 |
commit | 46cbdc7d1607b20c1bba67df4471f8e5d1243c3d (patch) | |
tree | 575a210f1061dd0c1de3028ef19bc5a7f46e50c5 /src/indicator-sound.c | |
parent | 8bbf7ea5805ed69a2d7450065a558398a623525f (diff) | |
download | ayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.tar.gz ayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.tar.bz2 ayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.zip |
last minute tidy up
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r-- | src/indicator-sound.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c index b47290c..3c65a90 100644 --- a/src/indicator-sound.c +++ b/src/indicator-sound.c @@ -129,7 +129,6 @@ indicator_sound_init (IndicatorSound *self) priv->dbus_proxy = NULL; GList* t_list = NULL; priv->transport_widgets_list = t_list; - // create our state manager which will handle all icon changing etc. priv->state_manager = g_object_new (SOUND_TYPE_STATE_MANAGER, NULL); g_signal_connect ( G_OBJECT(self->service), @@ -209,7 +208,7 @@ connection_changed (IndicatorServiceManager * sm, GError *error = NULL; if (connected == FALSE){ - //update_state (STATE_SINKS_NONE); + sound_state_manager_deal_with_disconnect (priv->state_manager); return; //TODO: Gracefully handle disconnection // do a timeout to wait for reconnection @@ -220,7 +219,14 @@ connection_changed (IndicatorServiceManager * sm, // we don't need to anything, gdbus takes care of the rest - bless. // just fetch the state. if (priv->dbus_proxy != NULL){ - //fetch_state (indicator); + g_dbus_proxy_call ( priv->dbus_proxy, + "GetSoundState", + NULL, + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, + (GAsyncReadyCallback)sound_state_manager_get_state_cb, + priv->state_manager); return; } |