codegen: Use g_signal_emit to emit signals
We were using emit_by_name which implies looking up for the signal name, while the generated code can easily remember the signal ID and use it instead, allowing direct access to the signal emission.
We were using emit_by_name which implies looking up for the signal name, while the generated code can easily remember the signal ID and use it instead, allowing direct access to the signal emission.