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 157569 - gnome_icon_lookup and gnome_icon_lookup_sync unwrapped
gnome_icon_lookup and gnome_icon_lookup_sync unwrapped
Status: RESOLVED FIXED
Product: gnome-python
Classification: Deprecated
Component: gnome
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2004-11-07 07:21 UTC by Seth Nickell
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
test case (502 bytes, application/x-python)
2004-11-24 21:30 UTC, Krzysztof Luks
Details

Description Seth Nickell 2004-11-07 07:21:18 UTC
From libgnomeui/libgnomeui/gnome-icon-lookup.h. They provide the ability to get
the appropriate mime icons for a URI/file. I tried wrappering them, but I don't
understand the flags stuff well enough.
Comment 1 Gustavo Carneiro 2004-11-07 12:51:31 UTC
Wrapped in HEAD.  They're both wrapped as gnome.ui.icon_lookup, with file_info
and mime_type arguments shifted to the end and made optional.  The API is

result, flags = gnome.ui.icon_lookup(icon_theme, thumbnail_factory, file_uri,
                                     custom_icon, flags, mime_type, file_info)

last 3 arguments are optional, flags defaults to NONE; if mime_type and
file_info are not provided it calls gnome_icon_lookup_sync instead of
gnome_icon_lookup

I did not test any of this, though... :-P
Comment 2 Krzysztof Luks 2004-11-24 21:30:55 UTC
Created attachment 34111 [details]
test case

Test case for gnome.ui.icon_lookup segfault
Comment 3 Gustavo Carneiro 2004-11-24 22:29:32 UTC
Fixed in CVS, though the test program doesn't work due to bad parameters:

Checking in ChangeLog;
new revision: 1.283; previous revision: 1.282
Checking in gnome/ui.override;
new revision: 1.23; previous revision: 1.22
Checking in gnome/uimodule.c;
new revision: 1.6; previous revision: 1.5
Checking in gnomevfs/pygnomevfs.h;
new revision: 1.7; previous revision: 1.6