GNOME Bugzilla – Bug 157569
gnome_icon_lookup and gnome_icon_lookup_sync unwrapped
Last modified: 2004-12-22 21:47:04 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.
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
Created attachment 34111 [details] test case Test case for gnome.ui.icon_lookup segfault
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