From 7063a2871097bd62140655a2a0cc8f4e300db4c4 Mon Sep 17 00:00:00 2001 From: Kerrick Staley Date: Mon, 4 Nov 2013 11:10:12 -0500 Subject: Bug 707112 - Replace webkit_dom_html_element_get_id usage webkit_dom_element_get_id() was introduced for WebKitGTK+ 2.2 and deprecates webkit_dom_html_element_get_id(). But Evolution only requires WebKitGTK+ 2.0.1. Ordinarily this would sit on a shelf until we require WebKitGTK+ 2.2, however WebKitGTK+ has now started issuing deprecation warnings about webkit_dom_html_element_get_id() at *runtime*, which is pointless and only fills up users' .xsession-errors file. To put a stop to this, we'll call the new function subject to a pre- processor WebKit version check, with a fallback to the old function. The build requirement remains at WebKitGTK+ 2.0.1. --- e-util/e-web-view.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'e-util/e-web-view.c') diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c index 2f614dc208..b013f3d031 100644 --- a/e-util/e-web-view.c +++ b/e-util/e-web-view.c @@ -3305,9 +3305,15 @@ create_and_add_css_style_sheet (WebKitDOMDocument *document, if (!style_element) { /* Create new