summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--font-viewer/font-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index 455f2bb5..fc63f694 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -624,7 +624,11 @@ main (int argc,
g_free (title);
gtk_window_set_resizable (GTK_WINDOW (window), TRUE);
+#if GTK_CHECK_VERSION (3, 2, 0)
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#else
hbox = gtk_hbox_new (FALSE, 0);
+#endif
gtk_container_add (GTK_CONTAINER (window), hbox);
swin = gtk_scrolled_window_new (NULL, NULL);