]> Pileus Git - grits/blob - src/compat.h
Add cube GtkGL example
[grits] / src / compat.h
1 #include <gtk/gtk.h>
2
3 #if ! GTK_CHECK_VERSION(3,0,0)
4 static inline GtkWidget *gtk_box_new(GtkOrientation orientation, gint spacing)
5 {
6         return orientation == GTK_ORIENTATION_HORIZONTAL
7                 ? gtk_hbox_new(0, spacing)
8                 : gtk_vbox_new(0, spacing);
9 }
10 #endif