GNOME Bugzilla – Bug 123456
ItemFactory.create_items and <ImageItem> bug
Last modified: 2005-08-22 12:44:50 UTC
according to the pygtk function for create_items, if the item is an <ImageItem>, the extra data should be either a string or a pixbuf. the C create_items function actually only appears to take inline data (it internally creates a pixbuf from it). attached is a patch against 2.0.0 to make it function correctly if passed a pixbuf. the pixbuf is first serialized and then passed to the C function. the memory created is then owned by the itemfactory's internal pixbuf.
Created attachment 20349 [details] [review] aforementioned patch
Fixed in cvs head and pygtk-2-0 branch, thanks for the patch