diff options
author | Timo Sirainen <cras@irssi.org> | 2005-11-19 17:28:50 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-11-19 17:28:50 +0000 |
commit | 5178a643bb565a987544bdb4d70c344000ecf201 (patch) | |
tree | c947fc901299cd5ece016d6a13d882fe85748a26 /src | |
parent | 429bb1e05b8d139050308f7dc58c52fb6d65b6e3 (diff) | |
download | irssi-5178a643bb565a987544bdb4d70c344000ecf201.zip |
With GLIB2 hook all glib logging functions no matter what the domains are.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4081 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index 279588de..b5764ceb 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -436,6 +436,9 @@ void fe_common_core_finish_init(void) signal_add_first("setup changed", (SIGNAL_FUNC) sig_setup_changed); /* _after_ windows are created.. */ +#ifdef HAVE_GLIB2 + g_log_set_default_handler((GLogFunc) glog_func, NULL); +#else g_log_set_handler(G_LOG_DOMAIN, (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING), @@ -444,6 +447,7 @@ void fe_common_core_finish_init(void) (GLogLevelFlags) (G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_WARNING), (GLogFunc) glog_func, NULL); /* send glib errors to the same place */ +#endif if (setup_changed) signal_emit("setup changed", 0); |