set of valid characters for type names

I was working on adding support to pygtk for registering new GTypes.

Rather than having the python user choose a name for the new GType, I
wanted to automatically choose a name.  In many places in python,
"module.classname" is used as a unique identifier for a class.  So this
sounded like a good choice for the type name.

Unfortunately, glib complains about this choice of name.  Looking at the
source code, it appears that the only allowable characters in the type
name are letters, numbers and -, _ and +.

Would it be possible to add '.' to the list of allowable characters?  Is
there any other characters anyone would like to use in type names?


Email: james daa com au

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]