diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-04-09 14:10:51 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-04-09 14:10:51 -0500 |
commit | 8e0baaf0e28ba90a464f487a2278174765164396 (patch) | |
tree | 166aed3ed7507f98f1073d7bfafb8fd601effe86 | |
parent | aec01584f15604fc49c7b0d4b111dade78f17216 (diff) | |
download | ayatana-indicator-power-8e0baaf0e28ba90a464f487a2278174765164396.tar.gz ayatana-indicator-power-8e0baaf0e28ba90a464f487a2278174765164396.tar.bz2 ayatana-indicator-power-8e0baaf0e28ba90a464f487a2278174765164396.zip |
if possible, set the device menuitems' accessible names.
-rw-r--r-- | src/indicator-power.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c index 6140c54..46adde7 100644 --- a/src/indicator-power.c +++ b/src/indicator-power.c @@ -561,6 +561,7 @@ menu_add_device (GtkMenu *menu, gchar *short_details = NULL; gchar *details = NULL; gchar *accessible_name = NULL; + AtkObject *atk_object; if (device == NULL) return; @@ -590,6 +591,9 @@ menu_add_device (GtkMenu *menu, /* Create menu item */ item = gtk_image_menu_item_new (); + atk_object = gtk_widget_get_accessible(item); + if (atk_object != NULL) + g_object_set (G_OBJECT(atk_object), "accessible-name", accessible_name, NULL); grid = gtk_grid_new (); gtk_grid_set_column_spacing (GTK_GRID (grid), 6); |