summaryrefslogtreecommitdiff
path: root/src/math-display.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-10-28 11:18:08 +0100
committerStefano Karapetsas <[email protected]>2013-10-28 11:18:08 +0100
commitb4826d2439153ed3d2ca0740040ca8f5a2b79b88 (patch)
tree7a7f4b4a9a27e3528011bd7b4387ead7bfda92e0 /src/math-display.c
parent5e27c642d0f755771873254c936261126d20deb8 (diff)
downloadmate-calc-b4826d2439153ed3d2ca0740040ca8f5a2b79b88.tar.bz2
mate-calc-b4826d2439153ed3d2ca0740040ca8f5a2b79b88.tar.xz
Fix gtk_*box_new deprecations
Diffstat (limited to 'src/math-display.c')
-rw-r--r--src/math-display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math-display.c b/src/math-display.c
index fb5af8b..004f909 100644
--- a/src/math-display.c
+++ b/src/math-display.c
@@ -326,7 +326,11 @@ create_gui(MathDisplay *display)
int i;
GtkStyle *style;
+#if GTK_CHECK_VERSION (3, 2, 0)
+ main_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
+#else
main_box = gtk_vbox_new(FALSE, 0);
+#endif
gtk_container_add(GTK_CONTAINER(display), main_box);
g_signal_connect(display, "key-press-event", G_CALLBACK(key_press_cb), display);
@@ -350,7 +354,11 @@ create_gui(MathDisplay *display)
g_signal_connect(display->priv->text_view, "key-press-event", G_CALLBACK(display_key_press_cb), display);
gtk_box_pack_start(GTK_BOX(main_box), display->priv->text_view, TRUE, TRUE, 0);
+#if GTK_CHECK_VERSION (3, 2, 0)
+ info_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
+#else
info_box = gtk_hbox_new(FALSE, 6);
+#endif
gtk_box_pack_start(GTK_BOX(main_box), info_box, FALSE, TRUE, 0);
info_view = gtk_text_view_new();