diff options
Diffstat (limited to 'src/caja-x-content-bar.c')
-rw-r--r-- | src/caja-x-content-bar.c | 7 |
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); |