From 379c86ba3ee14731f90fd4bf602e18a2d90c1e5d Mon Sep 17 00:00:00 2001 From: Perberos Date: Mon, 1 Apr 2013 18:56:44 -0300 Subject: =?UTF-8?q?fix=20for=20warning:=20=E2=80=98gtk=5Fvbox=5Fnew?= =?UTF-8?q?=E2=80=99=20is=20deprecated=20on=20gtk3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/math-window.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- cgit v1.2.1