Fix Pidgin debug window with threaded logging

Review Request #1292 — Created Feb. 8, 2022 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default

Reviewers

I was seeing several broken GtkTextIters which eventually caused a crash at random. This was due to TLS support, which writes its logs from a non-main thread. And there are probably other cases of threaded logging in GLib internals as well.

This change avoids calling GTK functions (which are not thread safe) from the log handler.

Connected to a local server with TLS, that previously caused guaranteed crashes.

Commits

Files