luka, your problem report is good. but maybe it could be even easier to get help/answers if you provided a simple/small test case and webkit/gtk program that could help on fast reproducing your problem, maybe file a bug in bugs.webkit.org (webkit gtk component) attach them .. (?)
or maybe also put some printf's on handleMouseReleaseEvent to see where it bails out (if it does) to not return the exteced value. On Wed, Aug 26, 2009 at 2:16 AM, Luka Napotnik<[email protected]> wrote: > Hello. > > I trigger a mouse event with handleMousePressEvent() and then > handleMouseReleaseEvent() to simulate a click on the page in the Gtk+ > port of WebKit. > > Exampler usage: > -------------------------------------- > gboolean click1, click2; > > click1 = frame->eventHandler()->handleMousePressEvent(PlatformMouseEvent( > IntPoint(x, y), IntPoint(0,0), LeftButton, MouseEventPressed, 1, > false, false, false, false, GDK_CURRENT_TIME)); > > click2 = frame->eventHandler()->handleMouseReleaseEvent(PlatformMouseEvent( > IntPoint(x, y), IntPoint(0,0), LeftButton, MouseEventReleased, 1, > false, false, false, false, GDK_CURRENT_TIME)); > -------------------------------------- > > where x and y are my click coordinates. I set a valid coordinate to a > html div element that will change when clicked. The problem is that > handleMousePressEvent always returns FALSE event when I successfully > click on the element and I see the changes. What could cause > handleMousePressEvent() to fail. Is there some argument that I didn't > set up correctly? > > Greets, > Luka > _______________________________________________ > webkit-help mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-help > -- --Antonio Gomes _______________________________________________ webkit-help mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
