Follow-up fix for GTK2 and GTK3 WX backends.