On Mon, 2004-11-29 at 23:41 +0000, Alex Roitman wrote:
> Hello everybody,
> 
> I am trying to use gnome.vfs.mime_get_icon and having problems:
> 
>    $ python
>    >>> import gnome.vfs
>    >>> print gnome.vfs.mime_get_icon('text/plain')
>    None
>    >>> print gnome.vfs.mime_get_icon('text/html')
>    None
> 
> Am I doing something silly?

  I'm as surprised as you, really, but I double checked the python
wrapping code for that function and it is ok, so it must be a problem
with gnome-vfs :|

> 
> Other gnome.vfs functions seem to be working fine:
>    >>> print gnome.vfs.mime_get_description('text/plain')
>    plain text document
>    >>> print gnome.vfs.mime_get_description('text/html')
>    HTML page
> 
> The fact that both Nautilus and GNOME's Actions->Recent Documents
> display proper icons for the mime types makes me think that nothing
> is wrong with the gnome libraries either.

  You should try the new wrapped function gnome.ui.icon_lookup, in
gnome-python 2.9.1.

  Regards.

> 
> The gnome-python I have is 2.6.1 from Debian sid.
> 
> Thanks in advance for any pointers,
> Alex
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to