wxWidgets/interface
Vadim Zeitlin ccca07af33 Fix crash when using wxNotebook with glib 2.73 or later
Make GTK notebook log suppression opt-in to avoid a fatal error when the
application calls g_log_set_writer_func() itself, as doing it more than
once immediately kills the application with glib 2.73 and there is no
way to check if it had been already done or not (you have to admire the
purity of the API design here).

This is unfortunate as 99% of the wxWidgets applications that do _not_
call g_log_set_writer_func() would now show the spurious diagnostics by
default again, but preferable to making the remaining 1% crash, and
there doesn't seem to be any other solution.

Call the new GTKAllowDiagnosticsControl() function in the notebook
sample to at least still avoid getting the spurious diagnostic messages
described in #22176 there.

See #22717.

(cherry picked from commit 8af645ed229ebb2542769775565ce85c158e4fb1 and
adapted to 3.2 stable ABI).
2022-08-30 12:35:46 +02:00
..
wx Fix crash when using wxNotebook with glib 2.73 or later 2022-08-30 12:35:46 +02:00
check_syntax.sh