[gcompris-devel] help needed in event handling
pgeorges
pascal.georges1 at free.fr
Sat Feb 15 09:19:05 UTC 2003
I noticed a bug in the advanced colors board : when clicking once,
several events are sometimes generated.
I put something like :
switch (event->type)
{
case GDK_BUTTON_PRESS:
printf("GDK_BUTTON_PRESS\n");
and when clicking once, I often get 2 prints of "GDK_BUTTON_PRESS".
The event is connected by the following code :
gtk_signal_connect(GTK_OBJECT(gcomprisBoard->canvas), "event",
(GtkSignalFunc) item_event, NULL);
as the board is initialized mainly by setting the background of the canvas.
Does anyone has an idea ?
Pascal
More information about the Gcompris-devel
mailing list