From f0450bb4001a9d37025578b7933b552cb07b27f6 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 15 Jan 2016 13:54:23 +0300 Subject: libslab: use GtkBox instead of GtkVBox in both GTK+ builds and fix deprecated usage of GtkHBox and GtkVBox in GTK+3 build NOTE: this commit changes the public interface of libslab in both GTK+ builds (due to transition of classes' parents and/or members from GtkVBox to GtkBox) --- libslab/shell-window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libslab/shell-window.c') 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) -- cgit v1.2.1