diff options
-rw-r--r-- | shell/ev-message-area.c | 7 |
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); } } } |