I’ve started a new project in GNOME Builder and it has a basic template with a Hello World GUI program.
Let’s say the application name is “foobar”.
It defines a macro:
#define FOOBAR_TYPE_APPLICATION (foobar_application_get_type())
and this gets used to construct a new object:
g_object_new (FOOBAR_TYPE_APPLICATION, “application-id”, application_id, “flags”, flags, NULL);
However, foobar_application_get_type() is not declared or defined anywhere. Yet everything compiles and runs fine.
What is going on here?