summaryrefslogtreecommitdiff
path: root/libslab/shell-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/shell-window.c')
-rw-r--r--libslab/shell-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libslab/shell-window.c b/libslab/shell-window.c
index b22b5c51..e09ae241 100644
--- a/libslab/shell-window.c
+++ b/libslab/shell-window.c
@@ -60,7 +60,11 @@ shell_window_new (AppShellData * app_data)
gtk_widget_set_app_paintable (GTK_WIDGET (window), TRUE);
gtk_frame_set_shadow_type(GTK_FRAME(window), GTK_SHADOW_NONE);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ window->_hbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
+#else
window->_hbox = GTK_BOX (gtk_hbox_new (FALSE, 0));
+#endif
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (window->_hbox));
#if GTK_CHECK_VERSION (3, 0, 0)