From bc1a275dedc30f56face403118699ebf9aafa846 Mon Sep 17 00:00:00 2001 From: Paul Pogonyshev Date: Mon, 11 Aug 2008 20:15:20 +0000 Subject: Bug 547104 – improve type wrapper creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-08-11 Paul Pogonyshev Bug 547104 – improve type wrapper creation * gobject/pygobject.c (pygobject_register_class): Use new pygobject_inherit_slots() to propagate custom slots in normal types too. (pygobject_inherit_slots): New function, break out of pygobject_new_with_interfaces() and rewrite a bit. (pygobject_find_slot_for): Add new argument that can forbid overriding non-NULL slots. * gio/gicon.override (pygio_do_icon_richcompare): Remove, the code is now directly in _wrap_g_icon_tp_richcompare(). (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) (_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash): Remove, duplicating code in this way is not needed anymore. svn path=/trunk/; revision=940 --- ChangeLog | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 1cc6502..a24749b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2008-08-11 Paul Pogonyshev + + Bug 547104 – improve type wrapper creation + + * gobject/pygobject.c (pygobject_register_class): Use new + pygobject_inherit_slots() to propagate custom slots in normal + types too. + (pygobject_inherit_slots): New function, break out of + pygobject_new_with_interfaces() and rewrite a bit. + (pygobject_find_slot_for): Add new argument that can forbid + overriding non-NULL slots. + + * gio/gicon.override (pygio_do_icon_richcompare): Remove, the code + is now directly in _wrap_g_icon_tp_richcompare(). + (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) + (_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash): + Remove, duplicating code in this way is not needed anymore. + 2008-08-10 Paul Pogonyshev Bug 546120 – make gio.File more Pythonic -- cgit