Fix building on GTK2 again, adding #ifdefs for gtk_label_set_[x,y]align
[geeqie.git] / src / cache_maint.c
index af1f789..d76ee8c 100644 (file)
@@ -1197,8 +1197,12 @@ static GtkWidget *cache_manager_location_label(GtkWidget *group, const gchar *su
        buf = g_strdup_printf(_("Location: %s"), subdir);
        label = pref_label_new(group, buf);
        g_free(buf);
+#if GTK_CHECK_VERSION(3,16,0)
        gtk_label_set_xalign(GTK_LABEL(label), 0.0);
        gtk_label_set_yalign(GTK_LABEL(label), 0.5);
+#else
+       gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
+#endif
 
        return label;
 }