After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143600 - gnome.vfs.mime_get_icon() returns None, always
gnome.vfs.mime_get_icon() returns None, always
Status: RESOLVED NOTABUG
Product: gnome-vfs
Classification: Deprecated
Component: MIME data
cvs (head)
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks: 160959
 
 
Reported: 2004-06-02 17:44 UTC by Francesco Gigli
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Francesco Gigli 2004-06-02 17:44:54 UTC
using gnome-python-2.0.2 and latest CVS "gnome.vfs.mime_get_icon()" always
returns "None"
- - -
Python 2.3.3 (#1, May 15 2004, 09:42:27)
[GCC 3.2.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnome, gnome.vfs
>>> uri = 'file:///home/jaramir/workLog'
>>> mime = gnome.vfs.get_mime_type(uri)
>>> print mime
text/plain
>>> icon = gnome.vfs.mime_get_icon(mime)
>>> print icon
None
Comment 1 Gustavo Carneiro 2004-06-02 18:03:59 UTC
  Correct.  But I can't find any bug in gnome-python, so the bug must be in
gnome-vfs.
Comment 2 Marco Pesenti Gritti 2004-12-12 20:32:20 UTC
This API is deprecated now. It was possible that it returned NULL before too, so
that case should have been handled by old code. The right API to use for this is
gnome_icon_lookup atm. When we will have a libgnomevfsui library we could add a
nicer/simpler api to do this to it.