-- cgit v1.2.3 From 9b6ac737fa4440f59cc3ed230144957bfd8d89de Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 22 Feb 2012 23:21:55 -0600 Subject: Add default accessible descriptions to the entries --- src/indicator-session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/indicator-session.c b/src/indicator-session.c index e748825..1640ed4 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -162,6 +162,7 @@ indicator_session_init (IndicatorSession *self) } self->users.label = GTK_LABEL (gtk_label_new (NULL)); + self->users.accessible_desc = _("User Menu"); const gchar *greeter_var; greeter_var = g_getenv("INDICATOR_GREETER_MODE"); @@ -169,6 +170,7 @@ indicator_session_init (IndicatorSession *self) // devices self->devices.name_hint = PACKAGE"-devices"; + self->devices.accessible_desc = _("Device Menu"); self->devices.menu = GTK_MENU (dbusmenu_gtkmenu_new(INDICATOR_SESSION_DBUS_NAME, INDICATOR_SESSION_DBUS_OBJECT)); if (greeter_mode){ -- cgit v1.2.3 From d88e2f6976a8e3cfe3d195899cc28a2706b8439f Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 22 Feb 2012 23:22:14 -0600 Subject: If we change the icon to show reboot we need to tell that to the a11y string as well --- src/indicator-session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/indicator-session.c b/src/indicator-session.c index 1640ed4..5d894e8 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -516,6 +516,8 @@ receive_signal (GDBusProxy * proxy, g_debug ("reboot required"); indicator_image_helper_update(self->devices.image, ICON_RESTART); } + self->devices.accessible_desc = _("Device Menu (reboot required)"); + g_signal_emit(G_OBJECT(self), INDICATOR_OBJECT_SIGNAL_ACCESSIBLE_DESC_UPDATE_ID, 0, &(self->devices)); } } -- cgit v1.2.3