diff options
author | Cedric Gustin <cedric.gustin@gmail.com> | 2006-01-04 22:14:09 +0000 |
---|---|---|
committer | Cedric Gustin <gustin@src.gnome.org> | 2006-01-04 22:14:09 +0000 |
commit | 0b07af909c44f27368a13ecfa94bfda5762e58fb (patch) | |
tree | be13df943e281f8580b14ee2c760419dbea7d961 /dsextras.py | |
parent | fe589b459de0d1d38a9e40966854da6c931c284a (diff) | |
download | pygobject-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.py | 4 |
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) |