summaryrefslogtreecommitdiff
path: root/src/caja-window-slot.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-17 21:45:22 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-17 21:45:22 +0100
commit57c2e8090698e8d05beec0c53e3a116fd8b88862 (patch)
tree51b24fec5c03202d7a16987c248d42f7f4c956d9 /src/caja-window-slot.c
parent312f33c5b54c735d15e78c9b96672b8b555f4834 (diff)
downloadcaja-57c2e8090698e8d05beec0c53e3a116fd8b88862.tar.bz2
caja-57c2e8090698e8d05beec0c53e3a116fd8b88862.tar.xz
GTK3: more deprecated GtkVBox/GtkHBox fixes
Diffstat (limited to 'src/caja-window-slot.c')
-rw-r--r--src/caja-window-slot.c9
1 files changed, 9 insertions, 0 deletions
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 <eel/eel-gtk-macros.h>
#include <eel/eel-string.h>
+#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);