开发者

In Mono/Gnome, how can I look up the icon for a mime type?

Gnome.Icon and Gnome.ThumbnailFactory both want me to pass in a URI of a file whose icon I want -- I only have a MIME type, which I want to lo开发者_Python百科ok up an icon for. Is there a GNOME C# API function which will give me what I want? Ideally the prototype would just be:

Gdk.Pixbuf LookupIcon (string mime_type);


Here's MonoDevelop's code to do this:

MonoDevelop SVN

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜