]> git.saurik.com Git - wxWidgets.git/commitdiff
Give wx.GridTableBase a destructor, and clear the ownership when it is
authorRobin Dunn <robin@alldunn.com>
Sat, 8 Apr 2006 21:49:20 +0000 (21:49 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 8 Apr 2006 21:49:20 +0000 (21:49 +0000)
passed to SetTable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/grid.i

index ec563fc7f230d0dcc917d1f4796478200eada979..a6d83e33e7ab8627940d17e33d7096593e321ea4 100644 (file)
@@ -1127,7 +1127,7 @@ class wxGridTableBase : public wxObject
 {
 public:
     // wxGridTableBase();   This is an ABC
-    //~wxGridTableBase();
+    ~wxGridTableBase();
 
     %extend {
         void _setOORInfo(PyObject* _self) {
@@ -1659,9 +1659,12 @@ public:
 
 
     wxGridTableBase * GetTable() const;
+
+    %disownarg(wxGridTableBase *);
     bool SetTable( wxGridTableBase *table, bool takeOwnership=false,
                    WXGRIDSELECTIONMODES selmode =
                    wxGrid::wxGridSelectCells );
+    %cleardisown(wxGridTableBase *);
 
     void ClearGrid();
     bool InsertRows( int pos = 0, int numRows = 1, bool updateLabels=true );