コード例 #1
0
ファイル: MimeIconCache.cs プロジェクト: pulb/basenji
        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;
        }
コード例 #2
0
        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;
        }