kdt
kdt

Reputation: 28509

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 look 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);

Upvotes: 0

Views: 305

Answers (1)

jpobst
jpobst

Reputation: 9982

Here's MonoDevelop's code to do this:

MonoDevelop SVN

Upvotes: 3

Related Questions