gtkd-developers / gir-to-d

Create D bindings from GObject introspection files
GNU Lesser General Public License v3.0
23 stars 13 forks source link

GirFunction: Properly translate signal name starting with '-' #14

Closed baedert closed 6 years ago

baedert commented 6 years ago

Signal names can start with a hypen, for example "-gtk-private". This would previously translate to wrappers like "onAdd-GtkPrivate" which is not proper D syntax of course. Translate the signal name to "GtkPrivate" instead so the wrapper function ends up as "addOnGtkPrivate".

MikeWey commented 6 years ago

Thanks.