Use g_ascii_strcasecmp() and not g_strcmp0(). g_strcmp0() was added in