diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-09-11 21:32:50 +0000 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-09-11 21:32:50 +0000 |
commit | d9d2cf8190c0f5ac9ed5f009c8ef6b52f78912a7 (patch) | |
tree | bdd73dcfde438899dc0259af4a942fb958b2a260 /src/uzbl-core.c | |
parent | 5ad69c8be2eec48fec103d8b7aeac098082e7e02 (diff) |
GTK+ 3.1 has deprecated VBox and HBox
Diffstat (limited to 'src/uzbl-core.c')
-rw-r--r-- | src/uzbl-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |