aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorDan Vrátil <dvratil@redhat.com>2012-08-08 23:50:41 +0800
committerDan Vrátil <dvratil@redhat.com>2012-08-08 23:50:41 +0800
commitb24af8b9cd942e50c43c61e7e688fda175ea858f (patch)
treecc49bc20b2c359899f3c1660789652b7759409ab /modules
parentc9f87334633b90f76e2052710acdd42fedb15ebb (diff)
downloadgsoc2013-evolution-b24af8b9cd942e50c43c61e7e688fda175ea858f.tar.gz
gsoc2013-evolution-b24af8b9cd942e50c43c61e7e688fda175ea858f.tar.zst
gsoc2013-evolution-b24af8b9cd942e50c43c61e7e688fda175ea858f.zip
Bug #681400 - Fix build against WebKitGtk+ 1.9.6
Diffstat (limited to 'modules')
-rw-r--r--modules/itip-formatter/itip-view.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/itip-formatter/itip-view.c b/modules/itip-formatter/itip-view.c
index bc54c65139..4a83cf5932 100644
--- a/modules/itip-formatter/itip-view.c
+++ b/modules/itip-formatter/itip-view.c
@@ -1105,8 +1105,16 @@ itip_view_rebuild_source_list (ItipView *view)
webkit_dom_html_element_set_inner_html (
WEBKIT_DOM_HTML_ELEMENT (option),
e_source_get_display_name (source), NULL);
- webkit_dom_html_element_set_class_name (
- WEBKIT_DOM_HTML_ELEMENT (option), "calendar");
+
+ /* See https://bugzilla.gnome.org/show_bug.cgi?id=681400
+ * FIXME: This can be removed once we require WebKitGtk 1.10+ */
+ #if WEBKIT_CHECK_VERSION (1, 9, 6)
+ webkit_dom_element_set_class_name (
+ WEBKIT_DOM_ELEMENT (option), "calendar");
+ #else
+ webkit_dom_html_element_set_class_name (
+ WEBKIT_DOM_HTML_ELEMENT (option), "calendar");
+ #endif
if (!e_source_get_writable (source)) {
webkit_dom_html_option_element_set_disabled (