../Source/JavaScriptCore/wtf/FastMalloc.h:265:1: error: '__private_extern__' does not name a type................../Source/JavaScriptCore/wtf/FastMalloc.h:272:1: error: '__private_extern__' does not name a typemake[1]: *** [Source/JavaScriptCore/API/libjavascriptcoregtk_1_0_la-JSBase.lo] Error 1
#if COMPILER(GCC) && OS(DARWIN)// #define WTF_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline))#define WTF_PRIVATE_INLINE __attribute__((visibility("hidden"))) inline __attribute__((always_inline))#elif COMPILER(GCC)
1. In an effort to keep a flatter namespace for users we decided that all of the user modules should be at the root of pyjs. So that it is possible to do things like:
Does this hulahop approach required compiling pythonwebkit?I seem to be having trouble compiling pythonwebkit from git://git.savannah.gnu.org/pythonwebkit.gitthough pywebkitgtk seemed to install fine. But from what I am reading thatis not usable?Is there another way get going on a Mac using chrome or firefoxor safari to do pyjamasdektop ?
Can you point me to some documentation on how to get this giwebkit compilingfrom scratch so that I can give it a go on the mac.So far in looking for document I have been confused betweenpywebkitgtk, then pythonwebkit and no giwebkitpywebkitgtk is a standard port I can find in my mac port repoFrom what I read pythonwebkit is an old branch of webkit with luke's python changes/wrappers.what is this giwebkit? Is it a standard part of webkit? or is it a branch of like pythonwebkit?
--
C Anthony
Found thishttp://comments.gmane.org/gmane.linux.laptop.olpc.sugar/39321
https://bugzilla.gnome.org/show_bug.cgi?id=641944
Which talks about the issue and a change in the gobject API
def setattr(self, inst, key, attr):# hasattr() *specifically* chosen because it calls getattr()# internally, possibly setting a proxy object; if True, super()# will then properly setattr() against the proxy or instance.if hasattr(inst, key):super(self._type_gi, inst).__setattr__(key, attr)else:inst.set_data(key, attr)logger.debug('setattr(inst, %r, attr):\n%s', key,pformat([('inst', inst), ('attr', attr)]))
def setattr(self, inst, key, attr):self.getattr(inst, key)super(self._type_gi, inst).__setattr__(key, attr)...i think it will probably work.the good news is you seem to be up and running! any issue from here is ours... i was a bit skeptical this would work at all, but you're way past that.
On Thu, Oct 17, 2013 at 4:50 AM, Sarvi Shanmugham <sarv...@gmail.com> wrote:
Found thishttp://comments.gmane.org/gmane.linux.laptop.olpc.sugar/39321
https://bugzilla.gnome.org/show_bug.cgi?id=641944
Which talks about the issue and a change in the gobject APIah dang, thanks for the link.i'll have to update the backend then... there wasn't a reason i used the set/get methods other than i thought they might be more stable...if you change:def setattr(self, inst, key, attr):# hasattr() *specifically* chosen because it calls getattr()# internally, possibly setting a proxy object; if True, super()# will then properly setattr() against the proxy or instance.if hasattr(inst, key):super(self._type_gi, inst).__setattr__(key, attr)else:inst.set_data(key, attr)logger.debug('setattr(inst, %r, attr):\n%s', key,pformat([('inst', inst), ('attr', attr)]))...to:
def setattr(self, inst, key, attr):self.getattr(inst, key)super(self._type_gi, inst).__setattr__(key, attr)...i think it will probably work.
def setattr(self, inst, key, attr):# hasattr() *specifically* chosen because it calls getattr()# internally, possibly setting a proxy object; if True, super()# will then properly setattr() against the proxy or instance.
hasattr(inst, key)super(self._type_gi, inst).__setattr__(key, attr)
// EventTarget interface[Custom] void addEventListener(DOMString type,EventListener listener,optional boolean useCapture);[Custom] void removeEventListener(DOMString type,EventListener listener,optional boolean useCapture);[RaisesException] boolean dispatchEvent(Event evt);void captureEvents(/*in long eventFlags*/);void releaseEvents(/*in long eventFlags*/);I read through some of your threads/bug to WebKit/Gobject introspection about adding addEventListener below.Is the above what you were looking for?
Yep, this is the remaining thing that I have to implement via ctypes... the method is defined in the underlying gobject api, but since WebKitGTK authors did not add a GNotify callback to the signature, or use a GClosure, the introspection stuff is unable to automatically generate a non-leaky binding... therefore it gets skipped altogether.
If you just change the function to skip that stuff (possibly by just `pass`ing it entirely), you should be able to run most if not all examples... event handling won't work, but it should still construct the DOM.
I plan to wrap up the ctypes stuff over the weekend... I'll be at the in-laws house with my chromebook, but VPN+SSH usually let's me work all the same.
--
C Anthony [mobile]
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 topicYet I can't seem to find any documentation on this add_event_listener API
On the other hand I found thiswhich seems to be using connect() to add the listeners to both the GTK level window objects as wellWebkit objects link links, docs, etc. I also noticed while debugging the Window and Document objects in runners.giwebkitthey have connect() API in them.
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() ?