From: Enrico Tröger Date: Wed, 4 Mar 2009 22:07:29 +0000 (+0100) Subject: Add WebKit version check to compat.h and use it in Preferences X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f36328c206102e3e6c95e18d4b4055ea1227a9;p=midori Add WebKit version check to compat.h and use it in Preferences --- diff --git a/midori/compat.h b/midori/compat.h index 42789bf6..74dd0bee 100644 --- a/midori/compat.h +++ b/midori/compat.h @@ -56,6 +56,8 @@ gtk_tool_item_set_tooltip_text (GtkToolItem* toolitem, #ifndef WEBKIT_CHECK_VERSION +#define WEBKIT_CHECK_VERSION(a,b,c) 0 + gfloat webkit_web_view_get_zoom_level (WebKitWebView* web_view); diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index da4784e1..a1fd1082 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -16,6 +16,7 @@ #endif #include "sokoke.h" +#include "compat.h" #include #include diff --git a/midori/midori-view.c b/midori/midori-view.c index 228b9fb4..ee05743c 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -34,10 +34,6 @@ #define D_(__domain, __message) __message #endif -#ifndef WEBKIT_CHECK_VERSION - #define WEBKIT_CHECK_VERSION(a,b,c) 0 -#endif - /* This is unstable API, so we need to declare it */ gchar* webkit_web_view_get_selected_text (WebKitWebView* web_view);