window: Return no item for no item name

This commit is contained in:
Benjamin Otte
2019-02-27 07:29:57 +01:00
parent b4ae491b45
commit 78d013f8d3

View File

@@ -4620,6 +4620,8 @@ gtk_window_get_icon_for_size (GtkWindow *window,
if (!name)
name = default_icon_name;
if (!name)
return NULL;
info = gtk_icon_theme_lookup_icon (gtk_icon_theme_get_default (),
name, size,