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:
@ -46,9 +46,15 @@ gimp_log_init (void)
|
|||||||
{ "scale", GIMP_LOG_SCALE }
|
{ "scale", GIMP_LOG_SCALE }
|
||||||
};
|
};
|
||||||
|
|
||||||
gimp_log_flags = g_parse_debug_string (env_log_val,
|
/* g_parse_debug_string() has special treatment of the string 'help',
|
||||||
log_keys,
|
* but we want to use it for the GIMP_LOG_HELP domain
|
||||||
G_N_ELEMENTS (log_keys));
|
*/
|
||||||
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user