From: Christian Dywan Date: Wed, 20 Jan 2010 06:11:20 +0000 (+0100) Subject: Add #define for gtk_widget_has_focus for GTK+ < 2.18 X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0795c4f13cd347598960089ca5ec5dc1254622ec;p=midori Add #define for gtk_widget_has_focus for GTK+ < 2.18 --- diff --git a/midori/sokoke.h b/midori/sokoke.h index 486dd5cf..37d1e46c 100644 --- a/midori/sokoke.h +++ b/midori/sokoke.h @@ -23,6 +23,10 @@ (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB) #endif +#if !GTK_CHECK_VERSION (2, 18, 0) +#define gtk_widget_has_focus(widget) GTK_WIDGET_HAS_FOCUS (widget) +#endif + #if !GTK_CHECK_VERSION(2, 12, 0) void