[epiphany] Fix the build with WebKit 2.5



commit d88f713fb1b23014adabe3733dcc724f2722417c
Author: Carlos Garcia Campos <cgarcia igalia com>
Date:   Fri Jul 4 08:49:28 2014 +0200

    Fix the build with WebKit 2.5
    
    Update to the API changes in WebKit 2.5

 embed/web-extension/ephy-web-overview.c |    6 ++++++
 src/ephy-window.c                       |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-overview.c b/embed/web-extension/ephy-web-overview.c
index b72d222..d493ca0 100644
--- a/embed/web-extension/ephy-web-overview.c
+++ b/embed/web-extension/ephy-web-overview.c
@@ -23,6 +23,12 @@
 
 #include <string.h>
 
+#if WEBKIT_CHECK_VERSION(2, 5, 0)
+#define WEBKIT_DOM_USE_UNSTABLE_API
+#include <webkitdom/WebKitDOMElementUnstable.h>
+#include <webkitdom/WebKitDOMDOMTokenList.h>
+#endif
+
 struct _EphyWebOverviewPrivate
 {
   WebKitWebPage *web_page;
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 4c48ace..046dd00 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2017,6 +2017,9 @@ web_view_ready_cb (WebKitWebView *web_view,
 
 static WebKitWebView *
 create_web_view_cb (WebKitWebView *web_view,
+#if WEBKIT_CHECK_VERSION(2, 5, 0)
+                   WebKitNavigationAction *navigation_action,
+#endif
                    EphyWindow *window)
 {
        EphyEmbed *embed;


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