Messages.setPrinterrHandler

Sets the handler for printing error messages.

Any messages passed to g_printerr() will be output via the new handler. The default handler simply outputs the message to stderr. By providing your own handler you can redirect the output, to a GTK+ widget or a log file for example.

struct Messages
static
GPrintFunc
setPrinterrHandler
(
GPrintFunc func
)

Parameters

func GPrintFunc

the new error message handler

Return Value

Type: GPrintFunc

the old error message handler

Meta