g_return_*_if_fail() is for public API to catch programming errors. For internal code, we should just use g_assert() to check internal state.
g_return_*_if_fail() is for public API to catch programming errors. For internal code, we should just use g_assert() to check internal state.