See the file COPYING for the full license text.
*/
+#if HAVE_CONFIG_H
+ #include <config.h>
+#endif
+
#include "midori-webview.h"
#include "main.h"
#include "sokoke.h"
#include "compat.h"
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#ifdef HAVE_GIO
#include <gio/gio.h>
#endif
#include <webkit/webkit.h>
web_view->window_object_cleared = TRUE;
}
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#ifdef HAVE_GIO
void
loadable_icon_finish_cb (GdkPixbuf* icon,
GAsyncResult* res,
static void
_midori_web_view_load_icon (MidoriWebView* web_view)
{
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #ifdef HAVE_GIO
GFile* file;
GFile* icon_file;
#endif
gint icon_width, icon_height;
GdkPixbuf* pixbuf_scaled;
- #if GLIB_CHECK_VERSION (2, 16, 0)
+ #ifdef HAVE_GIO
if (web_view->uri)
{
file = g_file_new_for_uri (web_view->uri);
{
const gchar* type;
const gchar* rel;
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#ifdef HAVE_GIO
GFile* icon_file;
GIcon* icon;
#endif
? gjs_value_get_attribute_string (link, "title") : NULL);
}
}
-#if GLIB_CHECK_VERSION (2, 16, 0)
+#ifdef HAVE_GIO
if (gjs_value_has_attribute (link, "rel"))
{
rel = gjs_value_get_attribute_string (link, "rel");