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 411560 - pygvfs_mime_application_new mishandles mimeapp->expects_uris
pygvfs_mime_application_new mishandles mimeapp->expects_uris
Status: RESOLVED FIXED
Product: gnome-python
Classification: Deprecated
Component: gnome-vfs
2.17.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks: 384483
 
 
Reported: 2007-02-24 13:19 UTC by Ed Catmur
Modified: 2007-02-24 21:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
pygvfs_mime_application_new-expects_uris-enum-not-bool.patch (677 bytes, patch)
2007-02-24 16:58 UTC, Ed Catmur
committed Details | Review

Description Ed Catmur 2007-02-24 13:19:23 UTC
pygvfs_mime_application_new has:

    return Py_BuildValue("sssOONO", mimeapp->id, mimeapp->name,
                         mimeapp->command,
                         mimeapp->can_open_multiple_files? Py_True : Py_False,
                         mimeapp->expects_uris? Py_True : Py_False,
                         uri_schemes,
                         mimeapp->requires_terminal? Py_True : Py_False);

However, mimeapp->expects_uris (_expects_uris with DISABLE_DEPRECATED) is of type GnomeVFSMimeApplicationArgumentType:

typedef enum {
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS,
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_PATHS,
	GNOME_VFS_MIME_APPLICATION_ARGUMENT_TYPE_URIS_FOR_NON_FILES
} GnomeVFSMimeApplicationArgumentType;
Comment 1 Ed Catmur 2007-02-24 16:58:49 UTC
Created attachment 83252 [details] [review]
pygvfs_mime_application_new-expects_uris-enum-not-bool.patch

Patch.
Comment 2 Gustavo Carneiro 2007-02-24 21:54:14 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.