fix type initialization for old versions of Gtk (like ubuntu)