Add WebKit version check to compat.h and use it in Preferences

This commit is contained in:
Enrico Tröger 2009-03-04 23:07:29 +01:00 committed by Christian Dywan
parent abf30976af
commit 40f36328c2
3 changed files with 3 additions and 4 deletions

View file

@ -56,6 +56,8 @@ gtk_tool_item_set_tooltip_text (GtkToolItem* toolitem,
#ifndef WEBKIT_CHECK_VERSION #ifndef WEBKIT_CHECK_VERSION
#define WEBKIT_CHECK_VERSION(a,b,c) 0
gfloat gfloat
webkit_web_view_get_zoom_level (WebKitWebView* web_view); webkit_web_view_get_zoom_level (WebKitWebView* web_view);

View file

@ -16,6 +16,7 @@
#endif #endif
#include "sokoke.h" #include "sokoke.h"
#include "compat.h"
#include <string.h> #include <string.h>
#include <glib/gi18n.h> #include <glib/gi18n.h>

View file

@ -34,10 +34,6 @@
#define D_(__domain, __message) __message #define D_(__domain, __message) __message
#endif #endif
#ifndef WEBKIT_CHECK_VERSION
#define WEBKIT_CHECK_VERSION(a,b,c) 0
#endif
/* This is unstable API, so we need to declare it */ /* This is unstable API, so we need to declare it */
gchar* gchar*
webkit_web_view_get_selected_text (WebKitWebView* web_view); webkit_web_view_get_selected_text (WebKitWebView* web_view);