When using GetGadgetItemText() to read a text line in a wrapped text block from an EditorGadget with flag #PB_Editor_WordWrap, in Linux (GTK2 and GTK3) the whole wrapped text block is returned in line 0 (in Windows it works as expected).
In Tricks 'n' Tips I have posted this cross-platform workaround.