=== PyGTK 2.5.3 === 2005-01-22 Gustavo J. A. M. Carneiro * gtk/gtkmodule.c (init_gtk): Do some type checking on sys.argv before using it. Fixes #163209. * gtk/gdk.override: Override slots tp_getattro and tp_setattro of GdkGC instead of tp_setattr and tp_getattr. Fixes #159468. * codegen/codegen.py: Allow override of tp_getattro and tp_setattro (non-deprecated variants of tp_getattr and tp_setattr). * gobject/pygflags.c (pyg_flags_new): Check that __gtype__ is PyGTypeWrapper_Type, not PyGEnum_Type. (pyg_flags_add): Set a custom __gtype__ for the new flags class. (pyg_flags_new): Remove "value out of range" check, it makes no sense in flags. (pyg_flags_new): Check for NULL return from PyDict_GetItem and set exception. * gobject/pygenum.c (pyg_enum_add): Set a custom __gtype__ for the new enum class. (pyg_enum_new): Check that __gtype__ is PyGTypeWrapper_Type, not PyGEnum_Type. * gobject/pygflags.c (pyg_flags_add): Idem. * gobject/pygenum.c (pyg_enum_add): Unset the flag Py_TPFLAGS_BASETYPE in newly created enum type. Set tp_new, which somehow was not being inherited. Fixes #154372. 2005-01-22 Mark McLoughlin * gobject/gobjectmodule.c (pyg_type_register): Fix reference leak to the module string; Appends the serial number to the type name, even if the module name can't be looked up. Fixes #164441. 2005-01-18 Gustavo J. A. M. Carneiro * codegen/reversewrapper.py (IntParam.convert_c2py): Don't bother checking if PyInt_FromLong fails. (DoubleParam.convert_c2py): Don't bother checking if PyFloat_FromDouble fails. (DoubleReturn.write_conversion): Check return value type. (IntReturn.write_conversion): idem. (StringReturn.write_conversion): idem. (VoidReturn.write_conversion): idem. * gtk/gtkmodule.c (init_gtk): On Python >= 2.4, don't call setlocale(LC_NUMERIC, "C"), as it breaks the locale module. Fixes #164451. 2005-01-16 Gustavo J. A. M. Carneiro * gobject/gobjectmodule.c (pyg_type_register): Use tp_base field of each base type to compare with PyGInterface_Type, instead of PyObject_IsSubclass, because we don't want a class defined as class Foo(GObject, SomeInterface) to be itself considered an interface when in turn it is subclassed. (pyg_type_register): Make "Interface type %s has no python implementation support" a warning instead of exception. This really isn't a fatal error and some programs seem to be using interfaces in weird ways. * codegen/reversewrapper.py (ReverseWrapper.generate): Rename variable PyGILState_STATE state to __py_state to avoid possible name collision with function parameters. 2005-01-13 John Finlay * gtk/gdk.override (_wrap_gdk_pixmap_colormap_create_from_xpm) (_wrap_gdk_pixmap_create_from_xpm_d) (_wrap_gdk_pixmap_colormap_create_from_xpm_d): Allow first arg to be a GdkDrawable. #159282 2005-01-13 Johan Dahlin * gtk/Makefile.am: Allow it to be built using automake 1.8. Fixes bug 163932 * codegen/codegen.py: Only declare the object when it's needed. Fixes some more compiler warnings. 2005-01-10 Gustavo J. A. M. Carneiro * codegen/codegen.py (Wrapper.write_virtuals): Don't raise exception if a do_xxx method is defined and the corresponding virtual is not supported, since we may have a signal with the same name and the user may be trying to override it. Fixes #163606: override size_allocate doesn't work. * gobject/pygobject.h, gobject/pygobject-private.h: Revert change from 2005-01-09 by me to define pyg_threads_enabled as PyEval_ThreadsInitialized() on Python 2.4 and define pyg_begin|end_allow_threads as Py_BEGIN|END_ALLOW_THREADS. Fixes #163612: segmentation fault on pygtk-demo. 2005-01-10 Johan Dahlin * configure.in: post release version bump * docs/random/release-checklist: Update