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 478690 - Destroy signal not called when deleting a widget
Destroy signal not called when deleting a widget
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: gobject
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-20 18:12 UTC by Marco Pesenti Gritti
Modified: 2008-09-09 21:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marco Pesenti Gritti 2007-09-20 18:12:42 UTC
The following snippet of code doesn't emit a destroy signal. It works fine with pygobject 2.13.

import gtk

def destroy_cb(widget):
    print 'Destroy'

label = gtk.Label()
label.connect('destroy', destroy_cb)
del label

import gc
while gc.collect(): pass

gtk.main()
Comment 1 Paul Pogonyshev 2008-09-09 21:10:57 UTC
We will not release 2.12 anymore and it works with trunk.  Closing.