gcompat: gtk_widget_set_can_focus() for below 2.18
[fio.git] / gcompat.h
index 61b989458468e7b6d30a544206e2ed0e073b1344..8b8461a8f06c381b860297fbfc044f16b1fac2f6 100644 (file)
--- a/gcompat.h
+++ b/gcompat.h
@@ -39,4 +39,8 @@ guint gtk_widget_get_allocated_height(GtkWidget *w);
 #define GFIO_DRAW_EVENT                "expose_event"
 #endif
 
+#if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION < 18
+void gtk_widget_set_can_focus(GtkWidget *widget, gboolean can_focus);
+#endif
+
 #endif