[webkit-gtk] how to download

Deepak Mundra deepak.m at allaboutif.com
Thu May 20 22:27:37 PDT 2010


Hi,

     You can look into the sample application code
WebKit/gtk/tests/testdownload.c which will help you. In fact
WebKit/gtk/tests/ contains few sample codes which will be helpful for
the beginners.pak

Regards
Deepak

On Fri, May 21, 2010 at 2:42 AM, Diego Escalante Urrelo
<diegoe at gnome.org> wrote:
> 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
>
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
>


More information about the webkit-gtk mailing list