Esempio n. 1
0
        public static Image CreateGtkImage(this IconInfo source)
        {
            var iconPath = source.Type.GetIconPath(source.ThemeTone);
            var buffer   = File.ReadAllBytes(iconPath);
            var pixbuf   = new Gdk.Pixbuf(buffer);

            return(new Image {
                Pixbuf = pixbuf, Name = source.ToString()
            });
        }