build: don't require glib 2.58 for g_canonicalize_file

GLib version is probably still a bit too new, so simply lift the
function needed.

Fixes: #1712.
This commit is contained in:
Dirk-Jan C. Binnema
2020-05-28 00:37:29 +03:00
parent 9192fd71a0
commit 0a49cead33
4 changed files with 154 additions and 2 deletions

View File

@ -110,7 +110,7 @@ init_file_metadata (MuMsgFile *self, const char* path, const gchar* mdir,
self->_timestamp = statbuf.st_mtime;
self->_size = (size_t)statbuf.st_size;
self->_path = g_canonicalize_filename(path, NULL);
self->_path = mu_canonicalize_filename(path, NULL);
self->_maildir = g_strdup(mdir ? mdir : "");
return TRUE;