]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/SWIG/typemaps.i
Fix wxListCtrl background colour bug Part I
[wxWidgets.git] / wxPython / SWIG / typemaps.i
index 041a00a818e8c4b4fea6e70c61ad645d21d3a75b..537511123c24ffabcca4d51a3168d53b32767f17 100644 (file)
@@ -179,28 +179,31 @@ output values.
 %}
 #endif
 
+
+// I don't use this anywhere, get rid of it...
+
 // Helper function for List output
+//  static PyObject* l_output_helper(PyObject* target, PyObject* o) {
+//      PyObject*   o2;
+//      if (!target) {
+//          target = o;
+//      } else if (target == Py_None) {
+//          Py_DECREF(Py_None);
+//          target = o;
+//      } else {
+//          if (!PyList_Check(target)) {
+//              o2 = target;
+//              target = PyList_New(0);
+//              PyList_Append(target, o2);
+//         Py_XDECREF(o2);
+//          }
+//          PyList_Append(target,o);
+//     Py_XDECREF(o);
+//      }
+//      return target;
+//  }
 
 %{
-static PyObject* l_output_helper(PyObject* target, PyObject* o) {
-    PyObject*   o2;
-    if (!target) {
-        target = o;
-    } else if (target == Py_None) {
-        Py_DECREF(Py_None);
-        target = o;
-    } else {
-        if (!PyList_Check(target)) {
-            o2 = target;
-            target = PyList_New(0);
-            PyList_Append(target, o2);
-           Py_XDECREF(o2);
-        }
-        PyList_Append(target,o);
-       Py_XDECREF(o);
-    }
-    return target;
-}
 %}
 
 // Force the argument to be ignored.