From d0f891a549567f69b8c98c8cd133d6d69c848014 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 25 Jul 2005 16:12:16 +0000 Subject: [PATCH] g_log_set_default_handler is since 2.6 --- tests/mterm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/mterm.c b/tests/mterm.c index 38b8e8eb..7ef52b68 100644 --- a/tests/mterm.c +++ b/tests/mterm.c @@ -56,7 +56,18 @@ static void init (int *argc, char ***argv, const char **cmd) gdk_window_set_debug_updates (TRUE); if (set_breakpoint) + { +#if GLIB_CHECK_VERSION(2,6,0) g_log_set_default_handler (breakpoint_log_handler, NULL); +#else + g_log_set_handler ("Gtk", breakpoint_log_handler, NULL); + g_log_set_handler ("Glib", breakpoint_log_handler, NULL); + g_log_set_handler ("Pango", breakpoint_log_handler, NULL); + g_log_set_handler ("Gdk", breakpoint_log_handler, NULL); + g_log_set_handler ("Moo", breakpoint_log_handler, NULL); + g_log_set_handler (NULL, breakpoint_log_handler, NULL); +#endif + } }