summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-column-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-column-chooser.c')
-rw-r--r--libcaja-private/caja-column-chooser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcaja-private/caja-column-chooser.c b/libcaja-private/caja-column-chooser.c
index 33410720..42bd904e 100644
--- a/libcaja-private/caja-column-chooser.c
+++ b/libcaja-private/caja-column-chooser.c
@@ -69,8 +69,11 @@ enum
};
static guint signals[LAST_SIGNAL] = { 0 };
-
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE(CajaColumnChooser, caja_column_chooser, GTK_TYPE_BOX);
+#else
G_DEFINE_TYPE(CajaColumnChooser, caja_column_chooser, GTK_TYPE_HBOX);
+#endif
static void caja_column_chooser_constructed (GObject *object);
@@ -471,6 +474,9 @@ caja_column_chooser_init (CajaColumnChooser *chooser)
g_object_set (G_OBJECT (chooser),
"homogeneous", FALSE,
"spacing", 8,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ "orientation", GTK_ORIENTATION_HORIZONTAL,
+#endif
NULL);
add_tree_view (chooser);