]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/SWIG/pycpp.cxx.patch
Corrections in light of recent toolbar and other changes
[wxWidgets.git] / wxPython / SWIG / pycpp.cxx.patch
index bcb3a4fac8ab489a05f964b099a1468024f5117c..54301e6a6c422abdccbcd2d9a584376f947cbf42 100644 (file)
@@ -1,18 +1,20 @@
-*** Modules\pycpp.cxx.orig     Mon Oct 08 16:27:42 2001
---- Modules\pycpp.cxx  Mon Oct 08 16:28:10 2001
+*** Modules/pycpp.cxx.orig     Fri Oct 12 16:37:36 2001
+--- Modules/pycpp.cxx  Fri Oct 12 16:38:20 2001
 ***************
 ***************
-*** 229,235 ****
+*** 228,235 ****
+        *additional << "def " << realname << "(*_args,**_kwargs):\n";
         *additional << tab4 << "val = " << class_name << "Ptr(apply("
                  << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
         *additional << tab4 << "val = " << class_name << "Ptr(apply("
                  << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
-                    << tab4 << "val.thisown = 1\n";
+!                   << tab4 << "val.thisown = 1\n"
 !                << tab4 << "return val\n\n";
       }
       // Patch up the documentation entry
       if (doc_entry) {
 !                << tab4 << "return val\n\n";
       }
       // Patch up the documentation entry
       if (doc_entry) {
---- 229,236 ----
+--- 228,236 ----
+        *additional << "def " << realname << "(*_args,**_kwargs):\n";
         *additional << tab4 << "val = " << class_name << "Ptr(apply("
                  << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
         *additional << tab4 << "val = " << class_name << "Ptr(apply("
                  << module << "." << name_construct(realname) << ",_args,_kwargs))\n"
-                    << tab4 << "val.thisown = 1\n";
+!                   << tab4 << "val.thisown = 1\n";
 !       emitAddPragmas(*additional, realname, tab4);
 !       *additional << tab4 << "return val\n\n";
       }
 !       emitAddPragmas(*additional, realname, tab4);
 !       *additional << tab4 << "return val\n\n";
       }