aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-sound.c
diff options
context:
space:
mode:
authorLuke Yelavich <luke.yelavich@canonical.com>2011-03-09 12:17:01 +1100
committerLuke Yelavich <luke.yelavich@canonical.com>2011-03-09 12:17:01 +1100
commit726f77ccdb4d0cc47b952c8403df926a9c7c7d45 (patch)
tree1cabeac965c3a662e69580cdaf3c3d0a57796a82 /src/indicator-sound.c
parentc552d82ff707e86eba876aaa8fda86e1596856a0 (diff)
downloadayatana-indicator-sound-726f77ccdb4d0cc47b952c8403df926a9c7c7d45.tar.gz
ayatana-indicator-sound-726f77ccdb4d0cc47b952c8403df926a9c7c7d45.tar.bz2
ayatana-indicator-sound-726f77ccdb4d0cc47b952c8403df926a9c7c7d45.zip
Indicators are now responsible for updating their own accessible description.
Refactor accessible description update code into a new function.
Diffstat (limited to 'src/indicator-sound.c')
-rw-r--r--src/indicator-sound.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/indicator-sound.c b/src/indicator-sound.c
index 6e1acc9..9e10f3a 100644
--- a/src/indicator-sound.c
+++ b/src/indicator-sound.c
@@ -640,3 +640,17 @@ indicator_sound_scroll (IndicatorObject *io, gint delta,
sound_state_manager_show_notification (priv->state_manager, value);
}
+
+void
+update_accessible_desc (IndicatorObject * io)
+{
+ GList *entries = indicator_object_get_entries(io);
+ IndicatorObjectEntry * entry = (IndicatorObjectEntry *)entries->data;
+ entry->accessible_desc = get_accessible_desc(io);
+ g_signal_emit(G_OBJECT(io),
+ INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID,
+ 0,
+ entry,
+ TRUE);
+ g_list_free(entries);
+}