set_print_handler


Description:

public void set_print_handler (PrintFunc func)

Sets the print handler.

Any messages passed to 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.

Parameters:

func

the new print handler

Returns:

the old print handler


Namespace: GLib
Package: glib-2.0