File atril-glib-2.54.patch of Package atril

--- a/configure.ac
+++ b/configure.ac
@@ -84,7 +84,7 @@ GLIB_GSETTINGS
 
 dnl Specify required versions of dependencies
 CAIRO_REQUIRED=1.14.0
-GLIB_REQUIRED=2.62.0
+GLIB_REQUIRED=2.54.0
 GTK_REQUIRED=3.22.0
 WEBKIT_REQUIRED=2.6.0
 LIBSECRET_REQUIRED=0.5
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -2194,12 +2194,18 @@ set_uri_mtime (GFile        *source,
 
 	info = g_file_query_info_finish (source, async_result, NULL);
 	if (info) {
+#if GLIB_CHECK_VERSION (2, 62, 0)
 		GDateTime *mtime;
 		mtime = g_file_info_get_modification_date_time (info);
 		if (mtime) {
 			utime = g_date_time_to_unix (mtime);
 			g_date_time_unref (mtime);
 		}
+#else
+		GTimeVal mtime;
+		g_file_info_get_modification_time (info, &mtime);
+		utime = mtime.tv_sec;
+#endif
 		g_object_unref (info);
 	}
 	ev_window->priv->uri_mtime = utime;
@@ -2597,7 +2603,11 @@ query_remote_uri_mtime_cb (GFile
 			   EvWindow     *ev_window)
 {
 	GFileInfo *info;
+#if GLIB_CHECK_VERSION (2, 62, 0)
 	GDateTime *mtime;
+#else
+	GTimeVal   mtime;
+#endif
 	GError    *error = NULL;
         gint64     utime;
 
@@ -2610,9 +2620,14 @@ query_remote_uri_mtime_cb (GFile
 		return;
 	}
 
+#if GLIB_CHECK_VERSION (2, 62, 0)
 	mtime = g_file_info_get_modification_date_time (info);
 	utime = g_date_time_to_unix (mtime);
 	g_date_time_unref (mtime);
+#else
+	g_file_info_get_modification_time (info, &mtime);
+	utime = mtime.tv_sec;
+#endif
 
 	if (ev_window->priv->uri_mtime != utime) {
 		GFile *target_file;
openSUSE Build Service is sponsored by