Sure.
object win; object da; array dasize;
void show_current() { return; }
int main(int ac,array am) { GTK2.setup_gtk(am);
win=GTK2.Window(GTK2.WindowToplevel); win->set_size_request(700,1000);
object hbox=GTK2.Hpaned();
da=GTK2.DrawingArea();
da->signal_connect("configure-event",lambda(object da,array req) { dasize=({ req[0]->width, req[0]->height}); remove_call_out(show_current); call_out(show_current,0); });
hbox->add(da);
win->add(hbox); win->show_all();
show_current();
return -1; }
So the bug was in the "..." part, as expected... ;-)
Remove the "[0]" parts and the code works. The error message was correct, you are indexing the request object with 0, but it expects to be indexed with a string.
That's funny, I'm pretty sure it used to be an array since that used to be working code. *shifts eyes*
pike-devel@lists.lysator.liu.se