From a72e65d9edc7bcc056dc8be8828f0bd9dd9dbb7c Mon Sep 17 00:00:00 2001 From: Wouter Coekaerts Date: Sun, 17 Jul 2005 16:40:06 +0000 Subject: [PATCH] Print glib errors nicely (debian/patches/01glib-errors.dpatch by David Pashley) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3862 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-common-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index cecb6dac..279588de 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -440,6 +440,10 @@ void fe_common_core_finish_init(void) (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING), (GLogFunc) glog_func, NULL); + g_log_set_handler("GLib", + (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL | + G_LOG_LEVEL_WARNING), + (GLogFunc) glog_func, NULL); /* send glib errors to the same place */ if (setup_changed) signal_emit("setup changed", 0);