[epiphany] Fix build with WebKit trunk
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix build with WebKit trunk
- Date: Sat, 23 Apr 2016 20:46:09 +0000 (UTC)
commit 4ecc401d52fda79d7e58e2db63f59b99dee6a280
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Apr 23 15:45:49 2016 -0500
Fix build with WebKit trunk
embed/web-extension/ephy-web-overview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-overview.c b/embed/web-extension/ephy-web-overview.c
index e252bfe..93503ad 100644
--- a/embed/web-extension/ephy-web-overview.c
+++ b/embed/web-extension/ephy-web-overview.c
@@ -145,7 +145,11 @@ ephy_web_overview_model_urls_changed (EphyWebOverviewModel *model,
item->url = g_strdup (url->url);
class_list = webkit_dom_element_get_class_list (webkit_dom_node_get_parent_element (WEBKIT_DOM_NODE
(item->anchor)));
+#if WEBKIT_CHECK_VERSION(2, 13, 0)
+ if (class_list && webkit_dom_dom_token_list_contains (class_list, "overview-removed"))
+#else
if (class_list && webkit_dom_dom_token_list_contains (class_list, "overview-removed", NULL))
+#endif
webkit_dom_dom_token_list_remove (class_list, "overview-removed", NULL);
webkit_dom_element_set_attribute (item->anchor, "href", url->url, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]