summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/waste/wastesupport.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-10-23 15:43:46 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-10-23 15:43:46 (GMT)
commit176f3a9339637647831f124fa72205325699e809 (patch)
treea107bbfcd38f46f90234ff95830c2c85f24aa116 /Mac/Modules/waste/wastesupport.py
parentb7e82c1c0c3370eec1891b3b7dcb08c8946fbd27 (diff)
downloadcpython-176f3a9339637647831f124fa72205325699e809.zip
cpython-176f3a9339637647831f124fa72205325699e809.tar.gz
cpython-176f3a9339637647831f124fa72205325699e809.tar.bz2
Added support for tab hooks
Diffstat (limited to 'Mac/Modules/waste/wastesupport.py')
-rw-r--r--Mac/Modules/waste/wastesupport.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Mac/Modules/waste/wastesupport.py b/Mac/Modules/waste/wastesupport.py
index ac41d64..14f9a14 100644
--- a/Mac/Modules/waste/wastesupport.py
+++ b/Mac/Modules/waste/wastesupport.py
@@ -52,6 +52,7 @@ LongRect_ptr = LongRect
includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """
#include <WEObjectHandlers.h>
+#include <WETabs.h>
/* Exported by Qdmodule.c: */
extern PyObject *QdRGB_New(RGBColor *);
@@ -389,6 +390,13 @@ inshandler_body = """
stdhand = ManualGenerator("STDObjectHandlers", stdhandlers_body)
inshand = ManualGenerator("WEInstallObjectHandler", inshandler_body)
+f = Method(OSErr, 'WEInstallTabHooks', (WEReference, 'we', InMode))
+methods.append(f)
+f = Method(OSErr, 'WERemoveTabHooks', (WEReference, 'we', InMode))
+methods.append(f)
+f = Method(Boolean, 'WEIsTabHooks', (WEReference, 'we', InMode))
+methods.append(f)
+
# add the populated lists to the generator groups
# (in a different wordl the scan program would generate this)
for f in functions: module.add(f)