diff options
author | Ted Gould <ted@gould.cx> | 2013-08-20 09:43:58 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2013-08-20 09:43:58 -0500 |
commit | 4626ffb3b99b9db6868751c18b9080563301b7fd (patch) | |
tree | 05fd615c84a81e9cbd39e66f5d5eb255764912ed /src | |
parent | b929a0f22e0835b519be7b1811214dbcce40d0b2 (diff) | |
download | ayatana-indicator-messages-4626ffb3b99b9db6868751c18b9080563301b7fd.tar.gz ayatana-indicator-messages-4626ffb3b99b9db6868751c18b9080563301b7fd.tar.bz2 ayatana-indicator-messages-4626ffb3b99b9db6868751c18b9080563301b7fd.zip |
Make the accessible name translatable and based on the blue envelope
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 39e10e7..a2775ff 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -25,6 +25,8 @@ #include <gio/gdesktopappinfo.h> #include <string.h> +#include "glib/gi18n.h" + typedef GObjectClass ImApplicationListClass; struct _ImApplicationList @@ -125,16 +127,20 @@ static void im_application_list_update_draws_attention (ImApplicationList *list) { const gchar *icon_name; + const gchar *accessible_name; GVariant *state; GActionGroup *main_actions; - if (g_hash_table_find (list->applications, application_draws_attention, NULL)) + if (g_hash_table_find (list->applications, application_draws_attention, NULL)) { icon_name = "indicator-messages-new"; - else + accessible_name = _("New Messages"); + } else { icon_name = "indicator-messages"; + accessible_name = _("Messages"); + } main_actions = g_action_muxer_get_group (list->muxer, NULL); - state = g_variant_new ("(sssb)", "", icon_name, "Messages", TRUE); + state = g_variant_new ("(sssb)", "", icon_name, accessible_name, TRUE); g_action_group_change_action_state (main_actions, "messages", state); } |