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 524719 - [PATCH] add Source.is_destroyed property
[PATCH] add Source.is_destroyed property
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gobject
Git master
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on: 510511
Blocks:
 
 
Reported: 2008-03-27 21:46 UTC by Bryan Silverthorn
Modified: 2012-04-04 15:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
bcs_source_is_destroyed.patch (1006 bytes, patch)
2008-03-27 21:52 UTC, Bryan Silverthorn
none Details | Review
bcs_test_is_destroyed.patch (907 bytes, patch)
2008-03-27 21:53 UTC, Bryan Silverthorn
none Details | Review

Description Bryan Silverthorn 2008-03-27 21:46:08 UTC
The g_source_is_destroyed() method

http://library.gnome.org/devel/glib/stable/glib-The-Main-Event-Loop.html#g-source-is-destroyed

is important but not wrapped. A patch adding an is_destroyed property wrapping this method is attached.
Comment 1 Bryan Silverthorn 2008-03-27 21:52:08 UTC
Created attachment 108146 [details] [review]
bcs_source_is_destroyed.patch

Patch against r755. Adds an is_destroyed property to the source wrapper. Requires the patch set at bug #510511.
Comment 2 Bryan Silverthorn 2008-03-27 21:53:32 UTC
Created attachment 108147 [details] [review]
bcs_test_is_destroyed.patch

Patch adding tests of the is_destroyed property. Requires the patch set at bug #510511.
Comment 3 Martin Pitt 2012-04-04 15:57:07 UTC
I rewrote the patches to work with the current pygobject, and made is_destroyed() a method instead of a property, to comply with the C API.

http://git.gnome.org/browse/pygobject/commit/?id=d4054be9de3b7e4ed64c8172ebbde0a697462c79

Thanks!