Added compatibility with GEdit 3.12