]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_notebook.i
wxCocoa: Don't use listbox for logging until it's more fully implemented.
[wxWidgets.git] / wxPython / src / _notebook.i
index 305a3103a48e3dea190abc63026fc62c44993be2..5cfb31366748289e7972a8086105d6c6a8546bcd 100644 (file)
@@ -15,9 +15,7 @@
 
 //---------------------------------------------------------------------------
 
-%{
-    DECLARE_DEF_STRING(NOTEBOOK_NAME);
-%}
+MAKE_CONST_WXSTRING(NOTEBOOK_NAME);
 
 //---------------------------------------------------------------------------
 %newgroup
@@ -66,8 +64,9 @@ public:
     virtual void SetImageList(wxImageList *imageList);
 
     // as SetImageList() but we will delete the image list ourselves
-    %addtofunc AssignImageList "args[1].thisown = 0"
+    %apply SWIGTYPE *DISOWN { wxImageList *imageList };
     void AssignImageList(wxImageList *imageList);
+    %clear wxImageList *imageList;
 
     // get pointer (may be NULL) to the associated image list
     wxImageList* GetImageList() const;
@@ -194,7 +193,7 @@ public:
     DocDeclAStr(
         virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const,
         "HitTest(Point pt) -> (tab, where)",
-        "Returns the tab which is hit, and flags indicating where using wxNB_HITTEST_ flags.");
+        "Returns the tab which is hit, and flags indicating where using wx.NB_HITTEST_ flags.");
 
     // implement some base class functions
     virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;