app: fix use of GIMP_LOG=help

g_parse_debug_string() has special treatment of the string 'help',
but we want to use it for the GIMP_LOG_HELP domain.
This commit is contained in:
Sven Neumann
2009-05-26 12:23:26 +02:00
parent 294154ed76
commit a427213fb8

View File

@ -46,9 +46,15 @@ gimp_log_init (void)
{ "scale", GIMP_LOG_SCALE }
};
gimp_log_flags = g_parse_debug_string (env_log_val,
log_keys,
G_N_ELEMENTS (log_keys));
/* g_parse_debug_string() has special treatment of the string 'help',
* but we want to use it for the GIMP_LOG_HELP domain
*/
if (g_ascii_strcasecmp (env_log_val, "help") == 0)
gimp_log_flags = GIMP_LOG_HELP;
else
gimp_log_flags = g_parse_debug_string (env_log_val,
log_keys,
G_N_ELEMENTS (log_keys));
}
}