diff --git a/include/wx/gtk/private/gtk2-compat.h b/include/wx/gtk/private/gtk2-compat.h index e26938e40d..15052403c8 100644 --- a/include/wx/gtk/private/gtk2-compat.h +++ b/include/wx/gtk/private/gtk2-compat.h @@ -256,6 +256,11 @@ inline void wx_gtk_widget_set_can_focus(GtkWidget *widget, gboolean can) } #define gtk_widget_set_can_focus wx_gtk_widget_set_can_focus +static inline gboolean wx_gtk_widget_has_focus(GtkWidget* widget) +{ + return GTK_WIDGET_HAS_FOCUS(widget); +} +#define gtk_widget_has_focus wx_gtk_widget_has_focus inline gboolean wx_gtk_widget_get_can_default(GtkWidget *widget) {