summaryrefslogtreecommitdiff
path: root/src/caja-location-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-location-bar.c')
-rw-r--r--src/caja-location-bar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/caja-location-bar.c b/src/caja-location-bar.c
index ec94c16d..965da186 100644
--- a/src/caja-location-bar.c
+++ b/src/caja-location-bar.c
@@ -429,7 +429,12 @@ caja_location_bar_init (CajaLocationBar *bar)
label = gtk_label_new (LOCATION_LABEL);
gtk_container_add (GTK_CONTAINER (event_box), label);
gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_RIGHT);
+#if GTK_CHECK_VERSION (3, 14, 0)
+ gtk_widget_set_halign (label, GTK_ALIGN_END);
+ gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
+#else
gtk_misc_set_alignment (GTK_MISC (label), 1, 0.5);
+#endif
g_signal_connect (label, "style_set",
G_CALLBACK (style_set_handler), NULL);