Re: GCancellable Error Code
- From: "A. Walton" <awalton gnome org>
- To: Nader Morshed <morshed nader gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GCancellable Error Code
- Date: Tue, 13 Apr 2010 11:32:21 -0400
On Mon, Apr 12, 2010 at 4:00 PM, Nader Morshed <morshed nader gmail com> wrote:
Hey, I'm wondering if anyone knows what/where I can find the error code name for an asynchronous operation
being canceled?
http://library.gnome.org/devel/gio/stable/gio-GIOError.html
Namely G_IO_ERROR_CANCELLED.
-A. Walton
I've looked through the docs/headers but was unable to find the information. This would just be used for
something like the following, where the user is only notified of an error if it was not themselves who
triggered it through a disconnect button:
if ((connection = g_socket_client_connect_to_host_finish(G_SOCKET_CLIENT(client), res, &err)) == NULL)
{
Âif (err->code != G_ERROR_CANCELED)
 Â//Tell user
}
--
Nader Morshed <morshed nader gmail com>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]