diff options
author | Stefano Karapetsas <[email protected]> | 2013-10-28 11:18:08 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-10-28 11:18:08 +0100 |
commit | b4826d2439153ed3d2ca0740040ca8f5a2b79b88 (patch) | |
tree | 7a7f4b4a9a27e3528011bd7b4387ead7bfda92e0 /src/math-converter.c | |
parent | 5e27c642d0f755771873254c936261126d20deb8 (diff) | |
download | mate-calc-b4826d2439153ed3d2ca0740040ca8f5a2b79b88.tar.bz2 mate-calc-b4826d2439153ed3d2ca0740040ca8f5a2b79b88.tar.xz |
Fix gtk_*box_new deprecations
Diffstat (limited to 'src/math-converter.c')
-rw-r--r-- | src/math-converter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math-converter.c b/src/math-converter.c index 2f543fe..f72e9c1 100644 --- a/src/math-converter.c +++ b/src/math-converter.c @@ -391,7 +391,11 @@ math_converter_init(MathConverter *converter) gtk_box_set_spacing(GTK_BOX(converter), 6); +#if GTK_CHECK_VERSION (3, 2, 0) + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); +#else hbox = gtk_hbox_new(FALSE, 0); +#endif gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(converter), hbox, FALSE, TRUE, 0); |