gtkD: events being triggered twice

Mike Wey via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 6 02:42:03 PDT 2017


On 06-08-17 03:25, Johnson Jones wrote:
> 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;
> });

Do you have an more complete example that i could test.

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list