aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indicator-session.c4
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));
}
}