aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-messages.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-17 11:59:42 -0600
committerTed Gould <ted@gould.cx>2011-02-17 11:59:42 -0600
commite1c268aa248f8998497221a0245796a943980ef5 (patch)
tree617a20c3eed10d7d18574dbd568a38025a6cb6d0 /src/indicator-messages.c
parent633b340034c355a8c2883894f5c61824184a59fa (diff)
downloadayatana-indicator-messages-e1c268aa248f8998497221a0245796a943980ef5.tar.gz
ayatana-indicator-messages-e1c268aa248f8998497221a0245796a943980ef5.tar.bz2
ayatana-indicator-messages-e1c268aa248f8998497221a0245796a943980ef5.zip
Updating the description when we signal that it's changed
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r--src/indicator-messages.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
index 9c57856..aff4785 100644
--- a/src/indicator-messages.c
+++ b/src/indicator-messages.c
@@ -94,14 +94,19 @@ static void
update_a11y_desc (void)
{
g_return_if_fail(IS_INDICATOR_MESSAGES(indicator));
- GList *entry = indicator_object_get_entries(indicator);
+
+ GList *entries = indicator_object_get_entries(indicator);
+ IndicatorObjectEntry * entry = (IndicatorObjectEntry *)entries->data;
+
+ entry->accessible_desc = get_accessible_desc(indicator);
g_signal_emit(G_OBJECT(indicator),
INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID,
0,
- entry->data,
- TRUE);
- g_list_free(entry);
+ entry,
+ TRUE);
+
+ g_list_free(entries);
return;
}