On Mon, Oct 28, 2013 at 1:55 PM, Sarvi Shanmugham <sarvil...@gmail.com>wrote:

> Hi Anthony,
>      I've been reading up on how to fix this add_event_listener problem
> and I came across a thread from you on the topic
> https://lists.webkit.org/pipermail/webkit-gtk/2012-February/000936.html
> Yet I can't seem to find any documentation on this add_event_listener API
>

yeah for the most part there isn't much info out there :( the GObject stuff
is pretty much 1-to-1 with DOM spec though, except using GObject naming
convention, ie. underscores vs. .

On the other hand I found this
> http://python-gtk-3-tutorial.readthedocs.org/en/latest/introduction.html
> which seems to be using connect() to add the listeners to both the GTK
> level window objects as well
> Webkit objects link links, docs, etc. I also noticed while debugging the
> Window and Document objects in runners.giwebkit
> they have connect() API in them.
>

those objects have a connect() method IIRC because they are high-level
obects that interact with other GTK3 objects, but i don't think everything
does.


> I am gonna look at fixing this later this evening. Was just hoping you
> could throw some context on why add_event_listener and why not connect() ?
>

there is some race problems due to events coming from GTK3 instead of
WebKit, though to be honest, i can't expand much more than that.
 additionally, i believe the GTK3 connect() stuff would require all objects
to register for all events ahead of time(!)... IIRC this was a limitation
of the GTK3 framework that "might be addressed" at some point.  if you
search the pyjamas-dev archives you can probably dredge up at least 10-20
pages of Luke rampaging about it, among other related things ;)

i'm actually on my way out of the office so i hope this isn't too terse, i
mainly wanted to catch you early so you don't waste any time on this...
because as of:

http://trac.webkit.org/changeset/157918

...we no longer have a problem :) after i tried to get it working the other
day, and discovered it was supposedly "fixed", i sort of raged on them
myself:

https://bugs.webkit.org/show_bug.cgi?id=114980#c<https://bugs.webkit.org/show_bug.cgi?id=114980#c10>
9
https://bugs.webkit.org/show_bug.cgi?id=77835#c52

...but lo and behold, the patch we need was merged 4 days later, so the
next release should have everything we need to implement this runtime using
vanilla upstream sources, and hence should soon work properly in all modern
distros (and probably Mac too!).

-- 

C Anthony

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Pyjs.org Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyjs-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to