Skip to content

Commit

Permalink
message-area: set a11y object name from actual icon name
Browse files Browse the repository at this point in the history
  • Loading branch information
monsta authored and raveit65 committed Jan 21, 2019
1 parent d43c675 commit fde24d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions shell/ev-message-area.c
Expand Up @@ -140,7 +140,6 @@ ev_message_area_set_image_for_type (EvMessageArea *area,
GtkMessageType type)
{
const gchar *icon_name = NULL;
const gchar *stock_id = NULL;
AtkObject *atk_obj;

switch (type) {
Expand Down Expand Up @@ -170,10 +169,8 @@ ev_message_area_set_image_for_type (EvMessageArea *area,
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (area));
if (GTK_IS_ACCESSIBLE (atk_obj)) {
atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
if (stock_id) {
GtkStockItem item;
gtk_stock_lookup (stock_id, &item);
atk_object_set_name (atk_obj, item.label);
if (icon_name) {
atk_object_set_name (atk_obj, icon_name);
}
}
}
Expand Down

0 comments on commit fde24d0

Please sign in to comment.