Skip to content

Commit fde24d0

Browse files
monstaraveit65
authored andcommitted
message-area: set a11y object name from actual icon name
1 parent d43c675 commit fde24d0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

shell/ev-message-area.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ ev_message_area_set_image_for_type (EvMessageArea *area,
140140
GtkMessageType type)
141141
{
142142
const gchar *icon_name = NULL;
143-
const gchar *stock_id = NULL;
144143
AtkObject *atk_obj;
145144

146145
switch (type) {
@@ -170,10 +169,8 @@ ev_message_area_set_image_for_type (EvMessageArea *area,
170169
atk_obj = gtk_widget_get_accessible (GTK_WIDGET (area));
171170
if (GTK_IS_ACCESSIBLE (atk_obj)) {
172171
atk_object_set_role (atk_obj, ATK_ROLE_ALERT);
173-
if (stock_id) {
174-
GtkStockItem item;
175-
gtk_stock_lookup (stock_id, &item);
176-
atk_object_set_name (atk_obj, item.label);
172+
if (icon_name) {
173+
atk_object_set_name (atk_obj, icon_name);
177174
}
178175
}
179176
}

0 commit comments

Comments
 (0)