Re: [pygtk] [PATCH] delete user data on "None" (pygtk 2.8.6)

2006-05-01 Thread Gustavo J. A. M. Carneiro
Please use bugzilla for bugs and patches. Thanks. On Seg, 2006-05-01 at 13:08 +0200, Danny Milosavljevic wrote: > Hi, > > Attached you find a patch that deletes user data when passing None to > GObject.set_data. > > Usually, set_data has the semantics of deleting the user data with a given >

[pygtk] [PATCH] delete user data on "None" (pygtk 2.8.6)

2006-05-01 Thread Danny Milosavljevic
Hi, Attached you find a patch that deletes user data when passing None to GObject.set_data. Usually, set_data has the semantics of deleting the user data with a given key on passing NULL. pygtk did not do this, and my C part got very confused when it got a Py_None object ;) cheers, Danny -