]> git.saurik.com Git - wxWidgets.git/commitdiff
Use the DISOWN typemap
authorRobin Dunn <robin@alldunn.com>
Tue, 27 Jan 2004 01:00:54 +0000 (01:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 27 Jan 2004 01:00:54 +0000 (01:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/contrib/gizmos/gizmos.i

index 3a6c5e88b145fbe9840c8cc65a2ed9c42d618a4b..dedee2bc626ecb36e7bede97b68f176a6152da15 100644 (file)
@@ -543,15 +543,11 @@ public:
     void SetStateImageList(wxImageList *imageList);
     void SetButtonsImageList(wxImageList *imageList);
 
-    %addtofunc AssignImageList      "args[1].thisown = 0";
+    %apply SWIGTYPE *DISOWN { wxImageList *imageList };
     void AssignImageList(wxImageList *imageList);
-
-    %addtofunc AssignStateImageList      "args[1].thisown = 0";
     void AssignStateImageList(wxImageList *imageList);
-
-    %addtofunc AssignButtonsImageList      "args[1].thisown = 0";
     void AssignButtonsImageList(wxImageList *imageList);
-
+    %clear wxImageList *imageList;
 
 
     // adds a column