summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-12-16 13:07:26 +0300
committerraveit65 <[email protected]>2019-01-21 14:23:51 +0100
commitfde24d00e6c3deaeefbffa17b8a40f9ccad62bf0 (patch)
treed959335f77856a0299d10cb74df671853512875f /shell
parentd43c6754043c26f4be460f1842fa3dc8a3ff49e3 (diff)
downloadatril-fde24d00e6c3deaeefbffa17b8a40f9ccad62bf0.tar.bz2
atril-fde24d00e6c3deaeefbffa17b8a40f9ccad62bf0.tar.xz
message-area: set a11y object name from actual icon name
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-message-area.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index 2824ada5..8764411e 100644
--- a/shell/ev-message-area.c
+++ b/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);
}
}
}