From: Przemysław Sitek Date: Wed, 6 Aug 2008 18:22:45 +0000 (+0200) Subject: Add #ifdefs around GFile to allow building with Glib < 2.16 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ff2856bf69140475fe27097979ea6d25690e872;p=midori Add #ifdefs around GFile to allow building with Glib < 2.16 --- 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 } }