1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2005-11-19 17:28:50 +00:00 committed by cras
parent 429bb1e05b
commit 5178a643bb

View File

@ -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);