summaryrefslogtreecommitdiff
path: root/codegen/h2def.py
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2000-10-24 14:20:39 +0000
committerJames Henstridge <jamesh@src.gnome.org>2000-10-24 14:20:39 +0000
commitf0f326cd884839851359bc9df5e232df63418902 (patch)
tree9e201746ea5fd7d97fbee1844aa1221d1bdbe70f /codegen/h2def.py
parent669d195f605409b87c03800580e864b44e254451 (diff)
downloadpygtk-f0f326cd884839851359bc9df5e232df63418902.tar.gz
small updates.
2000-10-24 James Henstridge <james@daa.com.au> * gtk/gtk.override: small updates. * gtk/gtk.defs: update with defs from all of gtk. * codegen/h2def.py (find_enum_defs): small fix to enums parsing.
Diffstat (limited to 'codegen/h2def.py')
-rwxr-xr-xcodegen/h2def.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/codegen/h2def.py b/codegen/h2def.py
index 280a9dc3..fd53a7bb 100755
--- a/codegen/h2def.py
+++ b/codegen/h2def.py
@@ -125,6 +125,7 @@ def find_enum_defs(buf, enums=[]):
isflags = string.find(vals, '<<') >= 0
entries = []
for val in splitter.split(vals):
+ if not string.strip(val): continue
entries.append(string.split(val)[0])
enums.append((name, isflags, entries))