summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math-window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math-window.c b/src/math-window.c
index e263f68..0c2ba4c 100644
--- a/src/math-window.c
+++ b/src/math-window.c
@@ -18,6 +18,7 @@
// gtk3 hack
#if !GLIB_CHECK_VERSION (3, 0, 0)
+
#ifndef GDK_KEY_F1
#define GDK_KEY_F1 GDK_F1
#endif
@@ -29,6 +30,12 @@
#ifndef GDK_KEY_Z
#define GDK_KEY_Z GDK_z
#endif
+
+#else // gtk 3.0.0
+
+ #define gtk_vbox_new(x,y) \
+ gtk_box_new(GTK_ORIENTATION_VERTICAL, y)
+
#endif
enum {