adapt to gtk 3.4 changes