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 547495 - wrap four important asynchronous methods in gio.Drive and gio.Mount
wrap four important asynchronous methods in gio.Drive and gio.Mount
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gio
Git master
Other All
: Normal enhancement
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2008-08-12 21:02 UTC by Paul Pogonyshev
Modified: 2008-08-12 21:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
4 methods + docs (8.05 KB, patch)
2008-08-12 21:03 UTC, Paul Pogonyshev
committed Details | Review

Description Paul Pogonyshev 2008-08-12 21:02:26 UTC
These methods are important in that there are no synchronous variants.  I.e. if they are lacking, PyGObject will be unable to do some jobs at all (without hacks).

Patch follows.
Comment 1 Paul Pogonyshev 2008-08-12 21:03:33 UTC
Created attachment 116455 [details] [review]
4 methods + docs

There are no tests, as I don't know how to test these.  But at least buggy methods are better than no methods in this case.  Bugs can be fixed later, but adding methods would be an API break.
Comment 2 Paul Pogonyshev 2008-08-12 21:11:35 UTC
Sending        ChangeLog
Sending        gio/gio.defs
Sending        gio/gio.override
Transmitting file data ...
Committed revision 948.

2008-08-13  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547495 – wrap four important asynchronous methods in gio.Drive
	and gio.Mount

	* gio/gio.defs (gio.Drive.eject, gio.Drive.poll_for_media)
	(gio.Mount.remount): Document.

	* gio/gio.override (_wrap_g_drive_eject)
	(_wrap_g_drive_poll_for_media, _wrap_g_mount_eject)
	(_wrap_g_mount_remount): New functions.