Gtk2 and Gtk3 compatibility