summaryrefslogtreecommitdiff
path: root/dsextras.py
diff options
context:
space:
mode:
authorCedric Gustin <cedric.gustin@gmail.com>2006-01-04 22:14:09 +0000
committerCedric Gustin <gustin@src.gnome.org>2006-01-04 22:14:09 +0000
commit0b07af909c44f27368a13ecfa94bfda5762e58fb (patch)
treebe13df943e281f8580b14ee2c760419dbea7d961 /dsextras.py
parentfe589b459de0d1d38a9e40966854da6c931c284a (diff)
downloadpygobject-0b07af909c44f27368a13ecfa94bfda5762e58fb.tar.gz
Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. If
2006-01-04 Cedric Gustin <cedric.gustin@gmail.com> * dsextras.py (Template.generate): Pass GLOBAL_MACROS (in particular HAVE_PYCAIRO) to codegen DefsParser. * setup.py: If pangocairo is enabled, add pycairo to the list of packages required to build the GTK+ module. Also set HAVE_PYCAIRO.
Diffstat (limited to 'dsextras.py')
-rw-r--r--dsextras.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsextras.py b/dsextras.py
index 15574484..1c6d7908 100644
--- a/dsextras.py
+++ b/dsextras.py
@@ -317,7 +317,7 @@ class Template:
return
for item in self.register:
- dp = DefsParser(item)
+ dp = DefsParser(item,dict(GLOBAL_MACROS))
dp.startParsing()
register_types(dp)
@@ -325,7 +325,7 @@ class Template:
globals = {}
execfile(self.load_types, globals)
- dp = DefsParser(self.defs)
+ dp = DefsParser(self.defs,dict(GLOBAL_MACROS))
dp.startParsing()
register_types(dp)