GuiEnv adaptation for event system.