[webkit-gtk] how to download
Diego Escalante Urrelo
diegoe at gnome.org
Thu May 20 14:12:11 PDT 2010
El jue, 20-05-2010 a las 17:07 +0530, EBerry-EdBook escribió:
> hi
> i am using WebKitGTK+ for making my own browser in gtk+ C language .
>
> i want to start download services in my browser. so to do that i have
> activated the download event of webkitwebview , it's call back gave me a
> pointer of webkitdownload . but I don't know how to use that ???
> i have set the URL of webkitdownload and called the function
> webkit_download_start
> then it shows me error
>
> CRITICAL **: void webkit_download_start(WebKitDownload*): assertion
> `priv->timer == NULL' failed
>
> (a.out:3103): GLib-GIO-CRITICAL **: g_output_stream_write_all: assertion
> `G_IS_OUTPUT_STREAM (stream)' failed
>
You need to define a destination, use
webkit_download_set_destination_uri (dwl, dest);
Remember the dest var should be like file:///home/diego/... and not
just /home/diego.
http://webkitgtk.org/reference/webkitgtk-WebKitDownload.html#webkit-download-set-destination-uri
More information about the webkit-gtk
mailing list