Messages.setPrintHandler

Sets the print handler.

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

struct Messages
static
GPrintFunc
setPrintHandler
(
GPrintFunc func
)

Parameters

func GPrintFunc

the new print handler

Return Value

Type: GPrintFunc

the old print handler

Meta