From 0795c4f13cd347598960089ca5ec5dc1254622ec Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 20 Jan 2010 07:11:20 +0100 Subject: [PATCH] Add #define for gtk_widget_has_focus for GTK+ < 2.18 --- midori/sokoke.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5