Don't cast GtkWrapMode to the incompatible enum PangoWrapMode
authorFederico Mena Quintero <federico@gnome.org>
Tue, 26 Apr 2022 18:43:19 +0000 (13:43 -0500)
committerFederico Mena Quintero <federico@gnome.org>
Tue, 26 Apr 2022 18:43:19 +0000 (13:43 -0500)
commit737854aa0d203de7bdab2b282a51691c9056dadc
treea67e99977d54b8fab69a129774159e1f6bf09529
parent3af4d53945dd92b955ba1fee45d9a2957b6af8c4
Don't cast GtkWrapMode to the incompatible enum PangoWrapMode

The enum values are not compatible, and moreover, there is an extra
GTK_WRAP_NONE that PangoWrapMode doesn't have - thus,
pango_wrap_mode_to_string() will assert.

As far as I can tell, Orca does not read the wrap-mode key in the
dictionary for text attributes, anyway.

Fixes: #4869
gtk/a11y/gtkatspipango.c
gtk/a11y/gtkatspitextbuffer.c