开发者

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

开发者 https://www.devze.com 2022-12-11 05:16 出处:网络
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

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

精彩评论

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