From 8c4dea6d050df632452aac47e076ec4845518d26 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 29 Aug 2015 13:15:01 +0200 Subject: Gtk3 Fontviewer: don't use deprecated-GtkHBox --- font-viewer/font-view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'font-viewer') 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); -- cgit v1.2.1