On Thu, 2012-08-23 at 13:08 -0500, C Anthony Risinger wrote:
> On Thu, Aug 23, 2012 at 5:13 AM, Jim Washington
> <[email protected]> wrote:
> >
> > OK. I want to play!
> >
> > With much bitching and patching, I have now got WebKitGTK+ (1.8.1)
> > compiled with the patch from the first post in this thread. I'm on
> > Gentoo x86_64, so I have some somewhat incompatible tools in the kit,
> > and (autoreconf -fvi) was needed to get around the libtool version
> > mismatch. Then, I had to manually edit the "configure" file to remove a
> > syntax error in the FLEX check. Then, I needed a patch for the bison
> > thing (http://trac.webkit.org/changeset/124099/). It finally compiled
> > with --enable-introspection --disable-spellcheck.
> 
> dang :-)
> 
> yeah, while the patch hasn't changed, i did add some of those things
> to the Ubuntu build:
> 
> https://launchpad.net/~xtfxme/+archive/pyjs/+packages
> 
> (i can't seem to find a direct link to the file, but if you pull the
> source and look at `debian/rules` it has similar stuff, like
> autoreconf)
> 
> > I'm using the latest pyjs from git on feature/giwebkit branch, and I'm
> > getting "no module named gi" when I try to run "python Hello.py". I feel
> > I must have missed an incantation somewhere. The libwebkit3[...]gz link
> > in the second post in this thread has gone missing, and I was going to
> > look there for a hint.
> 
> yeah maybe i should have left the orignal up, but the version was
> bumped to 1.8.2 in Arch so i uploaded a new revision:
> 
> https://github.com/downloads/pyjs/pyjs/libwebkit3-1.8.2-1-x86_64.pkg.tar.gz
> 
> .., but you can always just go here too:
> 
> https://github.com/pyjs/pyjs/downloads
> 
> > I realize that I am whining that "this recipe doesn't work with *my*
> > oven", but a hint would be much appreciated, even "these are not the
> > codes you are looking for".
> 
> i think you're about set -- you just need gobject-introspection python
> libs now -- in Arch the package is `python2-gobject`, and Ubuntu it's
> `python-gi` ... look for something like that.  it should provide this
> file:
> 
> /usr/lib/python2.7/site-packages/gi/__init__.py
> 
> ... and everything else in that package.
> 

CA - Thanks!

That was the missing incantation: emerged dev-python/pygobject. With the
proper environment variables set, it works (for me) as advertised.
Huzzah!

I see that you are working on the Timer thing. My installation is still
importing Timer.py instead of Timer.giwebkit.py.

I'll see what I can do to get dnd working. I need it for a project. I
know I can get it to work within a Window, but to do dnd between apps
will need some help in the infrastructure. Right now for dnd operations,
the attached mouse event is a DOMMouseEvent, which does not have a
dataTransfer member. I've tried recompiling with
--enable-data-transfer-items, but the compiler balks
(https://bugs.webkit.org/show_bug.cgi?id=94496) . 

IMHO, the dnd implementation needs a real API, rather than expecting
arcane low-level knowledge from the pyjs programmer. So, this is an FYI
- DND implementation will have an API in the future. A quick patch for
the current webkitgtk problem (intra-Window, anyway) would be maybe
something like a dnd.getDNDEvent(event) method to wrap the event in
something providing .dataTransfer in the case that the .dataTransfer
attribute is not already present in the event object.

- Jim Washington


-- 



Reply via email to