diff options
author | Luke Yelavich <luke.yelavich@canonical.com> | 2011-02-11 07:53:12 +1100 |
---|---|---|
committer | Luke Yelavich <luke.yelavich@canonical.com> | 2011-02-11 07:53:12 +1100 |
commit | 70d0a4d38b318a28abe7d6397c83c5b7ecb55c57 (patch) | |
tree | 2138bf7bf1b077e2a0b6d95c1ab5908d3dbdc809 /src/indicator-application.c | |
parent | a958e07de2cb9148a261187600b10598f60bbb69 (diff) | |
download | ayatana-indicator-application-70d0a4d38b318a28abe7d6397c83c5b7ecb55c57.tar.gz ayatana-indicator-application-70d0a4d38b318a28abe7d6397c83c5b7ecb55c57.tar.bz2 ayatana-indicator-application-70d0a4d38b318a28abe7d6397c83c5b7ecb55c57.zip |
Use the ACCESSIBLE_DESC_UPDATE signal to refresh the accessible description.
Diffstat (limited to 'src/indicator-application.c')
-rw-r--r-- | src/indicator-application.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c index 785f0b6..086692e 100644 --- a/src/indicator-application.c +++ b/src/indicator-application.c @@ -734,33 +734,9 @@ application_accessible_desc_changed (IndicatorApplication * application, gint po } if (signal_reload) { - /* Telling the listener that this has been removed, and then - readded to make it reparse the entry. */ - if (app->entry.label != NULL) { - gtk_widget_hide(GTK_WIDGET(app->entry.label)); - } - - if (app->entry.image != NULL) { - gtk_widget_hide(GTK_WIDGET(app->entry.image)); - } - - if (app->entry.menu != NULL) { - gtk_menu_detach(app->entry.menu); - } - - g_signal_emit(G_OBJECT(application), INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID, 0, &(app->entry), TRUE); - - if (app->entry.label != NULL) { - gtk_widget_show(GTK_WIDGET(app->entry.label)); - } - - if (app->entry.image != NULL) { - indicator_image_helper_update(app->entry.image, app->longname); - gtk_widget_show(GTK_WIDGET(app->entry.image)); - } - - g_signal_emit(G_OBJECT(application), INDICATOR_OBJECT_SIGNAL_ENTRY_ADDED_ID, 0, &(app->entry), TRUE); - } + /* Unlike the label change, we don't need to remove and re-add + the indicator to update the accessible description. */ + g_signal_emit(G_OBJECT(application), INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID, 0, &(app->entry), TRUE); return; |