gcompat: get closer to working with gtk3
[fio.git] / gcompat.h
index 9f6f1f6bb2bd4d44d7b24b1bd23f8ece9a0db2e4..66fb781d1351cca1adb185e3dccc67de0184d067 100644 (file)
--- a/gcompat.h
+++ b/gcompat.h
@@ -24,4 +24,9 @@ static inline GtkWidget *gtk_dialog_get_content_area(GtkDialog *dialog)
 }
 #endif
 
+#if GTK_MAJOR_VERSION < 3
+guint gtk_widget_get_allocated_width(GtkWidget *w);
+guint gtk_widget_get_allocated_height(GtkWidget *w);
+#endif
+
 #endif