GCancellable Error Code



Hey, I'm wondering if anyone knows what/where I can find the error code name for an asynchronous operation 
being canceled? 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>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]