Converting to support GEdit 3