g_signal_lookup fails if class is not referenced
Submitted by Andre Moreira Magalhaes
Link to original bug (#710839)
Description
Calling g_signal_lookup will fail if the class of the type hasn't being referenced yet.
Ideally g_signal_lookup should reference the class (g_type_class_ref) instead of using g_type_class_peek.