From 15665b4790c94192130f032508de2b3b8c6a2c97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 25 Jul 2006 06:07:01 +0000 Subject: [PATCH] PCH build fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/gtk/_core.py | 2 +- wxPython/src/gtk/_misc.py | 2 +- wxPython/src/gtk/_misc_wrap.cpp | 6 ++++++ wxPython/src/mac/_core.py | 2 +- wxPython/src/mac/_misc.py | 2 +- wxPython/src/mac/_misc_wrap.cpp | 6 ++++++ wxPython/src/msw/_core.py | 2 +- wxPython/src/msw/_misc.py | 2 +- wxPython/src/msw/_misc_wrap.cpp | 6 ++++++ 9 files changed, 24 insertions(+), 6 deletions(-) diff --git a/wxPython/src/gtk/_core.py b/wxPython/src/gtk/_core.py index 244f6cde11..48fa5b8045 100644 --- a/wxPython/src/gtk/_core.py +++ b/wxPython/src/gtk/_core.py @@ -3769,7 +3769,7 @@ class EvtHandler(Object): def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self, bool incref=True)""" val = _core_.EvtHandler__setOORInfo(*args, **kwargs) - args[0].thisown = 0 + args[0].this.own(False) return val def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): diff --git a/wxPython/src/gtk/_misc.py b/wxPython/src/gtk/_misc.py index a365da6bc2..c6b03904ea 100644 --- a/wxPython/src/gtk/_misc.py +++ b/wxPython/src/gtk/_misc.py @@ -1277,7 +1277,7 @@ class Timer(_core.EvtHandler): def __init__(self, *args, **kwargs): """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer""" _misc_.Timer_swiginit(self,_misc_.new_Timer(*args, **kwargs)) - self._setOORInfo(self, 0);Timer._setCallbackInfo(self, self, Timer) + self._setOORInfo(self,0); self.this.own(True); Timer._setCallbackInfo(self, self, Timer) __swig_destroy__ = _misc_.delete_Timer __del__ = lambda self : None; diff --git a/wxPython/src/gtk/_misc_wrap.cpp b/wxPython/src/gtk/_misc_wrap.cpp index a9de8fe4fc..ba55e2241e 100644 --- a/wxPython/src/gtk/_misc_wrap.cpp +++ b/wxPython/src/gtk/_misc_wrap.cpp @@ -3017,6 +3017,12 @@ wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) SetOwner(this); } +wxPyTimer::~wxPyTimer() +{ +// printf("-=* ~wxPyTimer\n"); +} + + SWIGINTERN swig_type_info* SWIG_pchar_descriptor() diff --git a/wxPython/src/mac/_core.py b/wxPython/src/mac/_core.py index 244f6cde11..48fa5b8045 100644 --- a/wxPython/src/mac/_core.py +++ b/wxPython/src/mac/_core.py @@ -3769,7 +3769,7 @@ class EvtHandler(Object): def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self, bool incref=True)""" val = _core_.EvtHandler__setOORInfo(*args, **kwargs) - args[0].thisown = 0 + args[0].this.own(False) return val def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): diff --git a/wxPython/src/mac/_misc.py b/wxPython/src/mac/_misc.py index c99fc56b36..770b525994 100644 --- a/wxPython/src/mac/_misc.py +++ b/wxPython/src/mac/_misc.py @@ -1277,7 +1277,7 @@ class Timer(_core.EvtHandler): def __init__(self, *args, **kwargs): """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer""" _misc_.Timer_swiginit(self,_misc_.new_Timer(*args, **kwargs)) - self._setOORInfo(self, 0);Timer._setCallbackInfo(self, self, Timer) + self._setOORInfo(self,0); self.this.own(True); Timer._setCallbackInfo(self, self, Timer) __swig_destroy__ = _misc_.delete_Timer __del__ = lambda self : None; diff --git a/wxPython/src/mac/_misc_wrap.cpp b/wxPython/src/mac/_misc_wrap.cpp index f3edbb6be6..5bf9f45e7b 100644 --- a/wxPython/src/mac/_misc_wrap.cpp +++ b/wxPython/src/mac/_misc_wrap.cpp @@ -3011,6 +3011,12 @@ wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) SetOwner(this); } +wxPyTimer::~wxPyTimer() +{ +// printf("-=* ~wxPyTimer\n"); +} + + SWIGINTERN swig_type_info* SWIG_pchar_descriptor() diff --git a/wxPython/src/msw/_core.py b/wxPython/src/msw/_core.py index 4e41401967..365a9af8f6 100644 --- a/wxPython/src/msw/_core.py +++ b/wxPython/src/msw/_core.py @@ -3769,7 +3769,7 @@ class EvtHandler(Object): def _setOORInfo(*args, **kwargs): """_setOORInfo(self, PyObject _self, bool incref=True)""" val = _core_.EvtHandler__setOORInfo(*args, **kwargs) - args[0].thisown = 0 + args[0].this.own(False) return val def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY): diff --git a/wxPython/src/msw/_misc.py b/wxPython/src/msw/_misc.py index c99fc56b36..770b525994 100644 --- a/wxPython/src/msw/_misc.py +++ b/wxPython/src/msw/_misc.py @@ -1277,7 +1277,7 @@ class Timer(_core.EvtHandler): def __init__(self, *args, **kwargs): """__init__(self, EvtHandler owner=None, int id=ID_ANY) -> Timer""" _misc_.Timer_swiginit(self,_misc_.new_Timer(*args, **kwargs)) - self._setOORInfo(self, 0);Timer._setCallbackInfo(self, self, Timer) + self._setOORInfo(self,0); self.this.own(True); Timer._setCallbackInfo(self, self, Timer) __swig_destroy__ = _misc_.delete_Timer __del__ = lambda self : None; diff --git a/wxPython/src/msw/_misc_wrap.cpp b/wxPython/src/msw/_misc_wrap.cpp index d7da56f718..d8091be1b8 100644 --- a/wxPython/src/msw/_misc_wrap.cpp +++ b/wxPython/src/msw/_misc_wrap.cpp @@ -3011,6 +3011,12 @@ wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) SetOwner(this); } +wxPyTimer::~wxPyTimer() +{ +// printf("-=* ~wxPyTimer\n"); +} + + SWIGINTERN swig_type_info* SWIG_pchar_descriptor() -- 2.45.2