aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-23 08:31:09 -0600
committerTed Gould <ted@gould.cx>2012-02-23 08:31:09 -0600
commit7609f062397a3f33fa6587972e200edefa5e7222 (patch)
treea1945f54e90e440837fdd75a04ed816b1841e04d
parent13d6c2bd152c5c9de79537f541f687e3dcd8ba7b (diff)
parentd88e2f6976a8e3cfe3d195899cc28a2706b8439f (diff)
downloadayatana-indicator-session-7609f062397a3f33fa6587972e200edefa5e7222.tar.gz
ayatana-indicator-session-7609f062397a3f33fa6587972e200edefa5e7222.tar.bz2
ayatana-indicator-session-7609f062397a3f33fa6587972e200edefa5e7222.zip
Set the accessible descriptions with the icons
-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));
}
}