summaryrefslogtreecommitdiff
path: root/shell/ev-message-area.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-09-09 22:18:58 +0200
committerraveit65 <[email protected]>2017-09-09 22:44:55 +0200
commit52283c0d4b0bb97a00570c2978fcfc5e3f697ddc (patch)
tree8d8c4d7c9226ac7923354ff8b7666324e94cd3f0 /shell/ev-message-area.c
parentd9715c87eda99a13a6ea61bd9d911a11b7b0ce97 (diff)
downloadatril-52283c0d4b0bb97a00570c2978fcfc5e3f697ddc.tar.bz2
atril-52283c0d4b0bb97a00570c2978fcfc5e3f697ddc.tar.xz
shell: fix stock item for message area
Diffstat (limited to 'shell/ev-message-area.c')
-rw-r--r--shell/ev-message-area.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c
index 7b77ddb1..ba0e86f8 100644
--- a/shell/ev-message-area.c
+++ b/shell/ev-message-area.c
@@ -148,6 +148,7 @@ 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) {
@@ -177,10 +178,9 @@ 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 (icon_name) {
+ if (stock_id) {
GtkStockItem item;
-
- gtk_stock_lookup (icon_name, &item);
+ gtk_stock_lookup (stock_id, &item);
atk_object_set_name (atk_obj, item.label);
}
}