aboutsummaryrefslogtreecommitdiff
path: root/src/sound-state-manager.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-01-26 16:40:38 -0600
committerConor Curran <conor.curran@canonical.com>2011-01-26 16:40:38 -0600
commit46cbdc7d1607b20c1bba67df4471f8e5d1243c3d (patch)
tree575a210f1061dd0c1de3028ef19bc5a7f46e50c5 /src/sound-state-manager.c
parent8bbf7ea5805ed69a2d7450065a558398a623525f (diff)
downloadayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.tar.gz
ayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.tar.bz2
ayatana-indicator-sound-46cbdc7d1607b20c1bba67df4471f8e5d1243c3d.zip
last minute tidy up
Diffstat (limited to 'src/sound-state-manager.c')
-rw-r--r--src/sound-state-manager.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/sound-state-manager.c b/src/sound-state-manager.c
index 4a8dbe2..2ea9b1a 100644
--- a/src/sound-state-manager.c
+++ b/src/sound-state-manager.c
@@ -52,9 +52,6 @@ static void sound_state_signal_cb ( GDBusProxy* proxy,
gchar* signal_name,
GVariant* parameters,
gpointer user_data );
-static void sound_state_manager_get_state_cb (GObject *object,
- GAsyncResult *res,
- gpointer user_data);
static gboolean sound_state_manager_can_proceed_with_blocking_animation (SoundStateManager* self);
static void
@@ -210,7 +207,7 @@ sound_state_manager_connect_to_dbus (SoundStateManager* self, GDBusProxy* proxy)
self);
}
-static void
+void
sound_state_manager_get_state_cb (GObject *object,
GAsyncResult *res,
gpointer user_data)
@@ -242,6 +239,17 @@ sound_state_manager_get_state_cb (GObject *object,
g_variant_unref(result);
}
+void
+sound_state_manager_deal_with_disconnect (SoundStateManager* self)
+{
+ SoundStateManagerPrivate* priv = SOUND_STATE_MANAGER_GET_PRIVATE(self);
+ priv->current_state = UNAVAILABLE;
+
+ gchar* image_name = g_hash_table_lookup (priv->volume_states,
+ GINT_TO_POINTER(priv->current_state) );
+ indicator_image_helper_update (priv->speaker_image, image_name);
+}
+
static void
sound_state_signal_cb ( GDBusProxy* proxy,
gchar* sender_name,