[webkit-gtk] WebKit2 GTK+ API

Alexander Larsson alexl at redhat.com
Thu Sep 15 10:56:31 PDT 2011


----- Original Message -----
> Maybe we could use the load operation object to unify all load methods
> into a single one. We currently have
> 
> webkit_web_view_load_uri()
> webkit_web_view_load_string()
> webkit_web_view_load_html_string()
> webkit_web_view_load_request()
> 
> We could have something like:
> 
> WebKitLoadOperation *webkit_load_operation_new_for_uri()
> WebKitLoadOperation *webkit_load_operation_new_for_html()
> WebKitLoadOperation *webkit_load_operation_new_for_plain_text()
> WebKitLoadOperation *webkit_load_operation_new_for_network_request()
> 
> webkit_web_view_load (WebKitWebView *view,
> WebKitLoadOperation *operation,
> GCancellable *cancellable,
> GAsyncReadyCallback callback,
> gpointer user_data);
> 
> But we would still have to connect the signals all the time for every
> load operation, unless we could reuse the WebKitLoadOperation object,
> I'm not sure, though.

Yeah, I don't really see the point, its not really an easier to use API...


More information about the webkit-gtk mailing list