From 8ff2856bf69140475fe27097979ea6d25690e872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Sitek?= Date: Wed, 6 Aug 2008 20:22:45 +0200 Subject: [PATCH] Add #ifdefs around GFile to allow building with Glib < 2.16 --- midori/midori-webview.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index e9431350..c55589cf 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -469,8 +469,10 @@ gjs_value_links_foreach_cb (GjsValue* link, { const gchar* type; const gchar* rel; +#if GLIB_CHECK_VERSION (2, 16, 0) GFile* icon_file; GIcon* icon; +#endif if (gjs_value_is_object (link) && gjs_value_has_attribute (link, "href")) { @@ -488,6 +490,7 @@ gjs_value_links_foreach_cb (GjsValue* link, ? gjs_value_get_attribute_string (link, "title") : NULL); } } +#if GLIB_CHECK_VERSION (2, 16, 0) if (gjs_value_has_attribute (link, "rel")) { rel = gjs_value_get_attribute_string (link, "rel"); @@ -500,6 +503,7 @@ gjs_value_links_foreach_cb (GjsValue* link, 0, NULL, (GAsyncReadyCallback)loadable_icon_finish_cb, web_view); } } +#endif } }