Add compatibility with gtk3