forked from joejulian/gio
a5b22860ac
THe single-stepping Event was done so that SubmitEvents didn't have to copy the text out if it wasn't needed. This is a dubious optimization, because SubmitEvents are only generated when Editor.Submit is true, in which case it is highly likely the user wants the text. Furthermore, I expect Editors with Submit enabled to be relatively short, in the order of a message field in a chat program. Finally, Editor will need support for undo at some point. Supporting undo means we can support a lightweight SubmitEvent that points to an older Editor state. All in all (1) we gain a simpler Events method, and (2) we can allow the user to call it before or after Editor.Layout. Before this change any the events were gone after Layout was called. Signed-off-by: Elias Naur <mail@eliasnaur.com>