summaryrefslogtreecommitdiff
path: root/tools/glib-errors-str-gen.py
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2009-05-26 16:23:10 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2009-05-26 16:23:10 +0100
commit86b25df86f16ba37711a1a7a434859298ae6207d (patch)
tree28a581d0e065bf34e225f8b7f05ac242b5ce6891 /tools/glib-errors-str-gen.py
parent54b584287efbdc0f7dcd0c28b1b512b39ea6580b (diff)
downloadtelepathy-glib-86b25df86f16ba37711a1a7a434859298ae6207d.tar.gz
Make gtk-doc notice TP_ERROR_STR_TERMINATED.
:'(
Diffstat (limited to 'tools/glib-errors-str-gen.py')
-rw-r--r--tools/glib-errors-str-gen.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/glib-errors-str-gen.py b/tools/glib-errors-str-gen.py
index c15889a51..f2f674473 100644
--- a/tools/glib-errors-str-gen.py
+++ b/tools/glib-errors-str-gen.py
@@ -51,6 +51,11 @@ class Generator(object):
self.b(' case TP_ERROR_%s:' % uc_nick)
self.b(' return %s;' % name)
+ self.h('')
+ self.h("/* Work around a gtkdoc bug where it doesn't see the last")
+ self.h(" * definition in the file unless there's misc after it")
+ self.h(" */")
+
self.b(' default:')
self.b(' g_return_val_if_reached (NULL);')
self.b(' }')