gtkmodule: Error out on malformed signal definition

Connecting to a signal in a gtk composite template needs both the
signal's name and a handler function to connect to.