[grilo] net: use G_IO_ERROR_PROXY_FAILED instead of GRL_NET_WC_ERROR_PROXY_ERROR



commit 92dadb2f48b0ca12f02c68459596d141bbea8d37
Author: Victor Toso <me victortoso com>
Date:   Sat Jun 4 22:12:17 2016 +0200

    net: use G_IO_ERROR_PROXY_FAILED instead of GRL_NET_WC_ERROR_PROXY_ERROR
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764077

 libs/net/grl-net-wc.c |    4 ++--
 libs/net/grl-net-wc.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libs/net/grl-net-wc.c b/libs/net/grl-net-wc.c
index 36b2680..2cb20fa 100644
--- a/libs/net/grl-net-wc.c
+++ b/libs/net/grl-net-wc.c
@@ -450,8 +450,8 @@ parse_error (guint status,
     return;
   case SOUP_STATUS_CANT_RESOLVE_PROXY:
   case SOUP_STATUS_CANT_CONNECT_PROXY:
-    g_simple_async_result_set_error (result, GRL_NET_WC_ERROR,
-                                     GRL_NET_WC_ERROR_PROXY_ERROR,
+    g_simple_async_result_set_error (result, G_IO_ERROR,
+                                     G_IO_ERROR_PROXY_FAILED,
                                      _("Cannot connect to the proxy server"));
     return;
   case SOUP_STATUS_INTERNAL_SERVER_ERROR: /* 500 */
diff --git a/libs/net/grl-net-wc.h b/libs/net/grl-net-wc.h
index becad74..8d660ac 100644
--- a/libs/net/grl-net-wc.h
+++ b/libs/net/grl-net-wc.h
@@ -41,7 +41,8 @@ G_BEGIN_DECLS
  * downloaded
  * @GRL_NET_WC_ERROR_FORBIDDEN: TBD
  * @GRL_NET_WC_ERROR_NETWORK_ERROR: Cannot connect to the server
- * @GRL_NET_WC_ERROR_PROXY_ERROR: Cannot connect to the proxy server
+ * @GRL_NET_WC_ERROR_PROXY_ERROR: Deprecated. You should check for
+ * G_IO_ERROR_PROXY_FAILED from G_IO_ERROR domain.
  * @GRL_NET_WC_ERROR_CANCELLED: The operation has been cancelled (see #GCancellable)
  *
  * These constants identify all the available errors managed by


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