gtkui: Optimize redraws.