[epiphany] Fix the build with WebKit 2.5
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix the build with WebKit 2.5
- Date: Fri, 11 Jul 2014 10:43:42 +0000 (UTC)
commit 4ebf5e3cbe2a33cbd7a4ddab8d27ab16eacaab77
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 327051a..9e9f461 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 76715f6..bfad48e 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2008,6 +2008,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]