this function is deprecated in Gtk-3