Ok, so here's a weird one. I have a "unselected" callback for a
CTree. I first wrote it in the main class and this was correct:
void f_gallery_tree_unselect_row(GTK.GladeXML gl_gallery,
GTK.Ctree tree, GTK.CTreeNode node) {
...
}
Then I moved it to a subclass and all of a sudden, I get this:
Attempt to call the NULL-value
Unknown program: 0("w_gallery_title")
PGallery.pmod/Gallery.pike:79:
Gallery()->f_gallery_tree_unselect_row(GTK.CTreeNode,0,GTK.Ctree,GTK.Glade
XML)
Note the order on the arguments! They are different (order)?! What is up with
this? Both times I used code like this:
gl = GTK.GladeXML();
gl->new("pgallery.glade", "w_gallery");
gl->signal_autoconnect(signals(), gl);
signals() return a mapping of callback method names and their
pointers.
So. Why does the order change?