gtkD: events being triggered twice

Johnson Jones via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 5 18:25:35 PDT 2017


GtkEventBox - Enter
GtkEventBox - Enter
Down
GtkEventBox - Leave
Up
GtkEventBox - Leave
GtkEventBox - Leave

That is when I move the mouse over the event box then click then 
move out out then release.

I would expect

Enter Down Leave Up

The fact that enter and leave are not paired equally is a 
problem. Can be worked around but seems like it would be a bug.

the code is simply


ebox.addOnEnterNotify(delegate(Event e, Widget w)
{	
writeln(w.getName(), " - ", "Enter");
return true;									});

ebox.addOnLeaveNotify((Event e, Widget w)
{									writeln(w.getName(), " - ", "Leave");
return true;
});


More information about the Digitalmars-d-learn mailing list