aboutsummaryrefslogtreecommitdiff
path: root/src/logwindow.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 09:34:51 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-05 09:34:51 +0000
commitb5949c62d7f1ae89ca06f9cc34f6b033abf3e576 (patch)
treed1fe2bcfaab4723d2e1624d71c584b2a864d58c8 /src/logwindow.c
parent7fca23b243e832856515b7ef6f5023090d0514f1 (diff)
removed some debug prints. uncommented code block for unix.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2272 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/logwindow.c')
-rw-r--r--src/logwindow.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/logwindow.c b/src/logwindow.c
index b8df6d93..759b5fd8 100644
--- a/src/logwindow.c
+++ b/src/logwindow.c
@@ -186,6 +186,7 @@ static void log_window_append_real(const gchar *str, LogType type)
#if USE_THREADS
if (g_thread_self() != main_thread) {
+ g_fprintf(stderr, "log_window_append_real called from non-main thread (%p)\n", g_thread_self());
return;
}
#endif
@@ -261,7 +262,6 @@ void log_window_append(const gchar *str, LogType type)
{
#if USE_THREADS
if (g_thread_self() != main_thread) {
- //g_fprintf(stderr, "log_window_append called from non-main thread (%p)\n", g_thread_self());
log_window_append_queue(str, type);
return;
}
@@ -286,7 +286,6 @@ void log_window_append_queue(const gchar *str, LogType type)
logdata->str = g_strdup(str);
logdata->type = type;
- //g_print("append_queue: (%d) %s", type, str);
g_async_queue_push(logwindow->aqueue, logdata);
#endif
}
@@ -302,7 +301,6 @@ void log_window_flush(void)
}
while ((logdata = g_async_queue_try_pop(logwindow->aqueue))) {
- //g_print("flush_queue: (%d) %s", logdata->type, logdata->str);
log_window_append_real(logdata->str, logdata->type);
g_free(logdata->str);
g_free(logdata);