]> spindle.queued.net Git - midori/commitdiff
Add #ifdefs around GFile to allow building with Glib < 2.16
authorPrzemysław Sitek <el.pescado@gazeta.pl>
Wed, 6 Aug 2008 18:22:45 +0000 (20:22 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 6 Aug 2008 18:22:45 +0000 (20:22 +0200)
midori/midori-webview.c

index e943135060376a462ac733bfc67c810b5032f43a..c55589cfe06c18e8f207748297b79f89f3e95cdf 100644 (file)
@@ -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
     }
 }