[webkit-gtk] how to trigger load_uri() to actually execute

Henning Sprang henning.sprang at gmail.com
Sun Aug 3 14:19:29 PDT 2014

Hi Robert,

(copy to the list which I forgot previously, sorry)

On Sun, Aug 3, 2014 at 12:22 AM, Robert Schroll <rschroll at gmail.com> wrote:
> I think you want to wait for the 'document-load-finished' signal.  But to
> have your signal handler run, the Gtk main loop needs to be running. (The
> webview is probably also doing its loading in the main loop; note that a
> dialog runs its own loop, which would explain why that worked but the sleep
> didn't.)  So you can start the main loop after loading the URL, and then
> stop it after you do the printing.

Cool, that does the trick!

thanks for the perfectly illustrating example!

Seems I have to get more into the gui event-driven mindset when
playing with these things ;)


More information about the webkit-gtk mailing list