From d9d2cf8190c0f5ac9ed5f009c8ef6b52f78912a7 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Sun, 11 Sep 2011 21:32:50 +0000 Subject: GTK+ 3.1 has deprecated VBox and HBox --- src/uzbl-core.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/uzbl-core.c') diff --git a/src/uzbl-core.c b/src/uzbl-core.c index af60767..92ef746 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1029,7 +1029,13 @@ initialize(int argc, char** argv) { create_scrolled_win(); /* pack the window and the status bar */ + +#if GTK_CHECK_VERSION(3,0,0) + uzbl.gui.vbox = gtk_box_new(FALSE, 0); + gtk_orientable_set_orientation(GTK_ORIENTABLE(uzbl.gui.vbox), GTK_ORIENTATION_VERTICAL); +#else uzbl.gui.vbox = gtk_vbox_new(FALSE, 0); +#endif gtk_box_pack_start(GTK_BOX(uzbl.gui.vbox), uzbl.gui.scrolled_win, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(uzbl.gui.vbox), uzbl.gui.status_bar, FALSE, TRUE, 0); -- cgit v1.2.3