Both of those error messages occur internally to libappindicator because the code assumes GtkStatusIcon is a subclass of GtkWidget, which is not the case. This is the bit which fails (it causes those messages AND the extra space to appear in the notification area):
Both of those error messages occur internally to libappindicator because the code assumes GtkStatusIcon is a subclass of GtkWidget, which is not the case. This is the bit which fails (it causes those messages AND the extra space to appear in the notification area):
gtk_widget_ hide(GTK_ WIDGET( status_ icon));
This should be:
gtk_status_ icon_set_ visible (status_icon, FALSE);