From 57c2e8090698e8d05beec0c53e3a116fd8b88862 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sun, 17 Jan 2016 21:45:22 +0100 Subject: GTK3: more deprecated GtkVBox/GtkHBox fixes --- src/caja-window-slot.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/caja-window-slot.c') diff --git a/src/caja-window-slot.c b/src/caja-window-slot.c index 128b52f7..51847293 100644 --- a/src/caja-window-slot.c +++ b/src/caja-window-slot.c @@ -33,6 +33,10 @@ #include #include +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + static void caja_window_slot_init (CajaWindowSlot *slot); static void caja_window_slot_class_init (CajaWindowSlotClass *class); static void caja_window_slot_dispose (GObject *object); @@ -479,8 +483,13 @@ caja_window_slot_set_content_view_widget (CajaWindowSlot *slot, if (new_view != NULL) { widget = caja_view_get_widget (new_view); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_box_pack_start (GTK_BOX (slot->view_box), widget, + TRUE, TRUE, 0); +#else gtk_container_add (GTK_CONTAINER (slot->view_box), GTK_WIDGET (new_view)); +#endif gtk_widget_show (widget); -- cgit v1.2.1