297
300
should_show (GKeyFile * keyfile, const gchar * group, const gchar * identity, gboolean should_have_target)
299
if (should_have_target && g_key_file_has_key(keyfile, group, ENVIRON_KEY, NULL)) {
302
if (should_have_target && g_key_file_has_key(keyfile, group, OLD_ENVIRON_KEY, NULL)) {
300
303
/* If we've got this key, we're going to return here and not
301
304
process the deprecated keys. */
304
gchar ** envs = g_key_file_get_string_list(keyfile, group, ENVIRON_KEY, &num_env, NULL);
307
gchar ** envs = g_key_file_get_string_list(keyfile, group, OLD_ENVIRON_KEY, &num_env, NULL);
306
309
for (j = 0; j < num_env; j++) {
307
310
if (g_strcmp0(envs[j], identity) == 0) {