[epiphany] ephy-web-view: Update to the latest WebKit2 API changes



commit 9b30a61181bf2c009e14941fd14ad551ca26f61e
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Tue Feb 19 18:44:20 2013 +0100

    ephy-web-view: Update to the latest WebKit2 API changes
    
    Use webkit_web_view_get_tls_info() instead of
    webkit_uri_response_get_https_status() that has been recently removed
    from the WebKit2 GTK+ API.

 embed/ephy-web-view.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index eced9f1..08b2927 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -2072,18 +2072,14 @@ load_changed_cb (WebKitWebView *web_view,
   case WEBKIT_LOAD_COMMITTED: {
     const char* uri;
     EphyWebViewSecurityLevel security_level = EPHY_WEB_VIEW_STATE_IS_UNKNOWN;
-    WebKitWebResource *resource;
-    WebKitURIResponse *response;
 
     /* Title and location. */
     uri = webkit_web_view_get_uri (web_view);
     ephy_web_view_location_changed (view, uri);
 
     /* Security status. */
-    resource = webkit_web_view_get_main_resource (web_view);
-    response = webkit_web_resource_get_response (resource);
     g_clear_object (&priv->certificate);
-    if (webkit_uri_response_get_https_status (response, &priv->certificate, &priv->tls_errors)) {
+    if (webkit_web_view_get_tls_info (web_view, &priv->certificate, &priv->tls_errors)) {
       g_object_ref (priv->certificate);
       security_level = priv->tls_errors == 0 ?
         EPHY_WEB_VIEW_STATE_IS_SECURE_HIGH : EPHY_WEB_VIEW_STATE_IS_BROKEN;


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