[gcompris-devel] help needed in event handling

pgeorges pascal.georges1 at free.fr
Sun Feb 16 00:54:04 UTC 2003


bruno wrote:
> What happen is that each time you call colors_create_item(), you do a:
> 
> gtk_signal_connect(GTK_OBJECT(gcomprisBoard->canvas), "event", 
> (GtkSignalFunc) item_event, NULL);
> 
> and thus assign another time the callback !!

Thanks.

> This command should be done once in your case.
> 
> What I don't unnderstant it's why it's no more called when we quit the
> boards ?

Certainly because the items are destroyed before leaving each board, 
then either the signals are removed, or they are connected to NULL 
objects, hence can't be called.

Pascal





More information about the Gcompris-devel mailing list