Gtk is printing too many errors