summaryrefslogtreecommitdiff
path: root/src/caja-x-content-bar.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-18 15:41:50 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-18 15:41:50 +0100
commitcf39567d3b05b69383c252812c5adf26382c866a (patch)
tree2ce1db2b6888f3dc8cdba6818233afcae493e7de /src/caja-x-content-bar.c
parent0edcf869c2f6b28a5bd0ee6e612229db8c9f2d67 (diff)
downloadcaja-cf39567d3b05b69383c252812c5adf26382c866a.tar.bz2
caja-cf39567d3b05b69383c252812c5adf26382c866a.tar.xz
GTK3: fix deprecated GTK_TYPE_{H/V}BOX usage
Diffstat (limited to 'src/caja-x-content-bar.c')
-rw-r--r--src/caja-x-content-bar.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/caja-x-content-bar.c b/src/caja-x-content-bar.c
index 19fcf135..1ef5fcba 100644
--- a/src/caja-x-content-bar.c
+++ b/src/caja-x-content-bar.c
@@ -50,7 +50,11 @@ enum
PROP_X_CONTENT_TYPE,
};
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE (CajaXContentBar, caja_x_content_bar, GTK_TYPE_BOX)
+#else
G_DEFINE_TYPE (CajaXContentBar, caja_x_content_bar, GTK_TYPE_HBOX)
+#endif
void
caja_x_content_bar_set_x_content_type (CajaXContentBar *bar, const char *x_content_type)
@@ -304,7 +308,8 @@ caja_x_content_bar_init (CajaXContentBar *bar)
bar->priv->label = gtk_label_new (NULL);
gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), PANGO_ELLIPSIZE_END);
-#if GTK_CHECK_VERSION (3, 14, 0)
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (bar), GTK_ORIENTATION_HORIZONTAL);
gtk_widget_set_halign (bar->priv->label, GTK_ALIGN_START);
#else
gtk_misc_set_alignment (GTK_MISC (bar->priv->label), 0.0, 0.5);