I have looked into this, and as this is the destroy signal for the widget, it needs to use GtkObject when compiled for Gtk2, and GtkWidget for Gtk3. This is because the delete signal has moved from GtkObject in gtk2 to GtkWidget in Gtk3.