public static Gdk.Pixbuf GetIcon(string name, int size) {
IconTheme icon_theme = new IconTheme();
icon_theme.AppendSearchPath(Path.Combine(UI.AssetsPath, "icons"));
try {
return icon_theme.LoadIcon(name, size, IconLookupFlags.GenericFallback);
} catch {
try {
return icon_theme.LoadIcon("gtk-image-missing", size, IconLookupFlags.GenericFallback);
} catch {
return null;
}
}
}