Hi,

I'm playing with embedding gecko rendering into a small application. I'm 
using tree of firefox 0.8 (I think ;)

I have the following problem: if I print a document while it is loading, 
the DocumentViewerImpl::Print method 
(mozilla/content/base/src/nsDocumentViewer.cpp:3102)
refuses to print the page (since it's still being loaded) and queues the 
print request for later. This queued request is supposed to be activated 
when DocumentViewerImpl::LoadComplete method is called. However it is 
never called. 
It works fine in the Firefox though (I checked, LoadComplete is in fact 
called and that's what triggers printing).
So I assume something is wrong with the GTK embedding library and could 
use some hints as to how this should be fixed.
I would also appreciate some clarification as to what exactly this 
embedding/browser/gtk tree is. Is this just a demo of how to embed Gecko 
or is this supposed to become part of the SDK in the future?

A little background on why this is a problem: I want to print the document 
as soon as it is loaded, so I tried printing it in the load_finished_cb 
callback function (see TestGtkEmbed.cpp), but when this callback is 
called, the document is still marked as not finished loading. I think this 
is wrong too: I expect load_finished callback to occur when, well, load is 
finished.

Will appreciate any input.

Mikhail
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to