diff options
author | Ted Gould <ted@gould.cx> | 2012-02-23 09:17:10 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-02-23 09:17:10 -0600 |
commit | cb9ef79ff83de58657995957de9b9efc2a7face1 (patch) | |
tree | a6224e1e5af9b8bbf0528cf3ca1334fe22ee7466 /src/indicator-session.c | |
parent | d37d11adeb30b3ef5c9668a67fd906e79a69286b (diff) | |
parent | a2a0779d48c596f1fda30a2d502bb3d419a83164 (diff) | |
download | ayatana-indicator-session-cb9ef79ff83de58657995957de9b9efc2a7face1.tar.gz ayatana-indicator-session-cb9ef79ff83de58657995957de9b9efc2a7face1.tar.bz2 ayatana-indicator-session-cb9ef79ff83de58657995957de9b9efc2a7face1.zip |
* New upstream release.
* Make GUDev dependency optional for non-Linux kernels
* Add accessibility strings on the icons (LP: #891861)
Diffstat (limited to 'src/indicator-session.c')
-rw-r--r-- | src/indicator-session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-session.c b/src/indicator-session.c index e748825..5d894e8 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){ @@ -514,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)); } } |