pidgin/pidgin

Fix Pidgin debug window with threaded logging

2022-02-07, Elliott Sales de Andrade
330cfcc1404d
Fix Pidgin debug window with threaded logging

I was seeing several broken `GtkTextIter`s 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.

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

Reviewed at https://reviews.imfreedom.org/r/1292/
REVIEWBOARD_URL = "https://reviews.imfreedom.org/"
REPOSITORY = "pidgin/pidgin"
REPOSITORY_TYPE = "mercurial"
BRANCH = "default"
LAND_DEST_BRANCH = "default"
LAND_PUSH = False