Exemplo n.º 1
0
        public static Pixbuf GetPixbuf(string resourceID)
        {
            Assembly callingAssembly = Assembly.GetCallingAssembly();
            IconSet  iconSet         = IconFactory.LookupDefault(resourceID);

            if (iconSet == null)
            {
                iconSet = new IconSet();
                ImageIcon.LoadIcon(iconSet, resourceID, callingAssembly);
                ImageIcon.iconFactory.Add(resourceID, iconSet);
            }
            return(iconSet.RenderIcon(Widget.DefaultStyle, TextDirection.Ltr, StateType.Normal, IconSize.Button, (Widget)null, (string)null, ImageIcon.ScaleFactor));
        }