sync with rtgui-0.6