public MimeIconCache(Widget w, bool useCustomMimeIcons, Icon defaultIcon, Dictionary<string, Icons.Icon> fallbackIcons) { this.widget = w; this.useCustomMimeIcons = useCustomMimeIcons; if (useCustomMimeIcons) customMimeMapping = new CustomIconThemeMimeMapping(); mimeIconCache = new Dictionary<string, Gdk.Pixbuf>(); if (fallbackIcons == null) this.fallbackIcons = new Dictionary<string, Icon>(); else this.fallbackIcons = fallbackIcons; this.defaultIcon = defaultIcon; }
public MimeIconCache(Widget w, bool useCustomMimeIcons, Icon defaultIcon, Dictionary <string, Icons.Icon> fallbackIcons) { this.widget = w; this.useCustomMimeIcons = useCustomMimeIcons; if (useCustomMimeIcons) { customMimeMapping = new CustomIconThemeMimeMapping(); } mimeIconCache = new Dictionary <string, Gdk.Pixbuf>(); if (fallbackIcons == null) { this.fallbackIcons = new Dictionary <string, Icon>(); } else { this.fallbackIcons = fallbackIcons; } this.defaultIcon = defaultIcon; }