diff options
author | Perberos <[email protected]> | 2013-04-01 18:56:44 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2013-04-01 18:56:44 -0300 |
commit | 379c86ba3ee14731f90fd4bf602e18a2d90c1e5d (patch) | |
tree | 0f54a2fe7c9f0c2dc068aeaee90a1d3853e56e86 /src | |
parent | d14dd45a040a64930e5611ea3b8fa72e8a3ebdfe (diff) | |
download | mate-calc-379c86ba3ee14731f90fd4bf602e18a2d90c1e5d.tar.bz2 mate-calc-379c86ba3ee14731f90fd4bf602e18a2d90c1e5d.tar.xz |
fix for warning: ‘gtk_vbox_new’ is deprecated on gtk3
Diffstat (limited to 'src')
-rw-r--r-- | src/math-window.c | 7 |
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 { |