gdbus-codegen: Single letter namespaces get dropped from symbol names

https://bugzilla.gnome.org/show_bug.cgi?id=659082

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen 2011-09-16 15:20:00 -04:00
parent e34e8a25a0
commit c6c2c10946

View File

@ -37,7 +37,7 @@ class CodeGenerator:
self.h = h
self.c = c
self.namespace = namespace
if len(namespace) > 1:
if len(namespace) > 0:
self.ns_upper = utils.camel_case_to_uscore(namespace).upper() + '_'
self.ns_lower = utils.camel_case_to_uscore(namespace).lower() + '_'
else: