Skip to content

Commit 31c9f12

Browse files
committed
ev-message-area.c: Check that the GtkStockItem is initialized
before attempting to access it. Solution by @dev0two Fixes #617
1 parent 06b18a8 commit 31c9f12

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

shell/ev-message-area.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ ev_message_area_set_image_for_type (EvMessageArea *area,
169169
if (icon_name) {
170170
GtkStockItem item;
171171

172-
gtk_stock_lookup (icon_name, &item);
173-
atk_object_set_name (atk_obj, item.label);
172+
if (gtk_stock_lookup (icon_name, &item)) {
173+
atk_object_set_name (atk_obj, item.label);
174+
}
174175
}
175176
}
176177
}

0 commit comments

Comments
 (0)