El Thu, 15 Sep 2011 12:17:09 -0700 Martin Robinson <[email protected]> escribió: > On Thu, Sep 15, 2011 at 12:13 PM, Carlos Garcia Campos > <[email protected]> wrote: > > > load_uri_finish() returns the result of the async operation using > > the GAsyncResult passed to the async ready callback, see: > > > > http://developer.gnome.org/gio/stable/GAsyncResult.html#GAsyncResult.description > > I guess my thought was that if the result of the load was going to be > exposed as properties on the WebView, maybe that duplication isn't > necessary. Or did you mean above that progress would be a property, > but errors would not be?
Yes, we leave progress and load-status properties, and add:
webkit_web_view_load_uri(WebKitWebView *view,
const gchar *uri,
GCancellable *cancellable,
GAsyncReadyCallabck finished_callback,
gpointer user_data);
The operation is finished when async ready callback is called no matter
whether it was successful or not, or even cancelled. In the async ready
callback you do something like:
if (!webkit_web_view_load_uri_finish(view, result, &error)) {
g_print ("An error ocurred during loading: %s\n", error->message);
g_error_free (error);
}
> --Martin
>
--
Carlos Garcia Campos
http://pgp.rediris.es:11371/pks/lookup?op=get&search=0xF3D322D0EC4582C3
signature.asc
Description: PGP signature
_______________________________________________ webkit-gtk mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
