Skip to content
Permalink
Browse files

message-area: set a11y object name from actual icon name

  • Loading branch information...
monsta authored and raveit65 committed Dec 16, 2018
1 parent d43c675 commit fde24d00e6c3deaeefbffa17b8a40f9ccad62bf0
Showing with 2 additions and 5 deletions.
  1. +2 −5 shell/ev-message-area.c
@@ -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) {
@@ -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);
}
}
}

0 comments on commit fde24d0

Please sign in to comment.
You can’t perform that action at this time.