Re: getting the icon pixbuf for a file

2012-08-16 Thread Andreas Rönnquist
On Thu, 16 Aug 2012 19:43:26 +0200 Andreas Rönnquist wrote: > On Fri, 17 Aug 2012 00:01:08 +0800 > Just Fill Bugs wrote: > > > 于 08/16/2012 11:24 PM, Andreas Rönnquist 写道: > > > > > Sorry, I mean loading the Pixbuf of the file-type / mime-type of a > > > file - Not simply loading a file into a

Re: getting the icon pixbuf for a file

2012-08-16 Thread Andreas Rönnquist
On Fri, 17 Aug 2012 00:01:08 +0800 Just Fill Bugs wrote: > 于 08/16/2012 11:24 PM, Andreas Rönnquist 写道: > > > Sorry, I mean loading the Pixbuf of the file-type / mime-type of a > > file - Not simply loading a file into a pixbuf. That is a bit more > > complicated getting... > > > > Maybe this:

Re: getting the icon pixbuf for a file

2012-08-16 Thread Andreas Rönnquist
On Fri, 17 Aug 2012 00:01:08 +0800 Just Fill Bugs wrote: > 于 08/16/2012 11:24 PM, Andreas Rönnquist 写道: > > > Sorry, I mean loading the Pixbuf of the file-type / mime-type of a > > file - Not simply loading a file into a pixbuf. That is a bit more > > complicated getting... > > > > Maybe this:

Re: getting the icon pixbuf for a file

2012-08-16 Thread Frank Cox
On Thu, 16 Aug 2012 17:24:02 +0200 Andreas Rönnquist wrote: > Sorry, I mean loading the Pixbuf of the file-type / mime-type of a > file - Not simply loading a file into a pixbuf. That is a bit more > complicated getting... Do you mean something like this? GtkWidget *icon; GdkPixbuf *pixbuf; pixb

Re: getting the icon pixbuf for a file

2012-08-16 Thread Just Fill Bugs
于 08/16/2012 11:24 PM, Andreas Rönnquist 写道: Sorry, I mean loading the Pixbuf of the file-type / mime-type of a file - Not simply loading a file into a pixbuf. That is a bit more complicated getting... Maybe this:

Re: getting the icon pixbuf for a file

2012-08-16 Thread Andreas Rönnquist
On Thu, 16 Aug 2012 22:41:28 +0800 Just Fill Bugs wrote: > 于 08/16/2012 07:58 PM, Andreas Rönnquist 写道: > > Hey > > > > I am trying to get the icon bitmap for a file and insert it into a > > TreeView widget - That is the pixbuf for the mime-type of a file. Is > > there any examples of doing this

Re: getting the icon pixbuf for a file

2012-08-16 Thread Tadej Borovšak
Hi. > I am trying to get the icon bitmap for a file and insert it into a > TreeView widget - That is the pixbuf for the mime-type of a file. Is > there any examples of doing this in plain C using GTK/GLib? I think you'll want gtk_widget_render_icon() function [1]. This will use current theme sett

Re: getting the icon pixbuf for a file

2012-08-16 Thread Just Fill Bugs
于 08/16/2012 07:58 PM, Andreas Rönnquist 写道: Hey I am trying to get the icon bitmap for a file and insert it into a TreeView widget - That is the pixbuf for the mime-type of a file. Is there any examples of doing this in plain C using GTK/GLib? I am satisfied with an example that work in Linux