From 40f36328c206102e3e6c95e18d4b4055ea1227a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 4 Mar 2009 23:07:29 +0100 Subject: [PATCH] Add WebKit version check to compat.h and use it in Preferences --- midori/compat.h | 2 ++ midori/midori-preferences.c | 1 + midori/midori-view.c | 4 ---- 3 files changed, 3 insertions(+), 4 deletions(-) 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);