/// <summary> /// Gets the icon best representing this <see cref="FileReference"/>, based on its file extension. /// </summary> /// <param name="fileReference">The item reference for which the icon should be retrieved.</param> /// <returns>A pixel buffer containg the icon.</returns> public static Pixbuf GetIcon(this FileReference fileReference) { return(IconManager.GetIconForFiletype(fileReference.FilePath)); }