[evolution-ews/gnome-3-38] EEwsNotification: Use proxy settings from the connection object



commit 54515d8f72f3e0106e87730998663d33156b177a
Author: Milan Crha <mcrha redhat com>
Date:   Tue Jan 5 10:37:20 2021 +0100

    EEwsNotification: Use proxy settings from the connection object
    
    The notification's SoupSession should use the same proxy as
    the connection object, to be able to connect the same way as
    the connection itself.

 src/EWS/common/e-ews-notification.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/EWS/common/e-ews-notification.c b/src/EWS/common/e-ews-notification.c
index f2a986db..4c6d1553 100644
--- a/src/EWS/common/e-ews-notification.c
+++ b/src/EWS/common/e-ews-notification.c
@@ -168,6 +168,12 @@ ews_notification_constructed (GObject *object)
                        camel_ews_settings_get_auth_mechanism (ews_settings));
 
                g_object_unref (ews_settings);
+
+               e_binding_bind_property (
+                       cnc, "proxy-resolver",
+                       notif->priv->soup_session, "proxy-resolver",
+                       G_BINDING_SYNC_CREATE);
+
                g_object_unref (cnc);
        }
 }


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