[webkit-dev] Is it possible to block webkit_web_view_load_html_string() until the content is actually loaded?
Zhe Su
james.su at gmail.com
Mon May 4 04:42:32 PDT 2009
It works.
Thanks a lot.
On Mon, May 4, 2009 at 4:33 PM, Holger Freyther <zecke at selfish.org> wrote:
> On Monday 04 May 2009 06:36:46 Zhe Su wrote:
> > Hi,
> > I'm writing an application which uses webkit to display some html
> > content. webkit_web_view_load_html_string() is used to set content into
> > webkit. I found this function will return before the content is actually
> > loaded, then webkit will load the content in background. However my
> > application needs block until the content is actually loaded. I know that
> > webkit has a signal "load-finished", which will be emitted when the
> content
> > is fully loaded. But because of some limitation, my application can only
> > block at somewhere until the content is fully loaded. Because it's a
> single
> > thread application, I don't know how to do it. Any suggestions to solve
> > this problem?
>
> Run your own event loop and leave it once load-finished got called or your
> timeout is reached...
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20090504/47ab3397/attachment.html>
More information about the webkit-dev
mailing list