summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--gsearchtool/gsearchtool.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d5be2545..a116decd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@ AC_SUBST(SUN_OS)
dnl pkg-config check
-GLIB_REQUIRED=2.30.0
+GLIB_REQUIRED=2.20.0
GIO_REQUIRED=2.16.0
GTK_REQUIRED=2.20.0
GIO_UNIX_REQUIRED=2.18.0
diff --git a/gsearchtool/gsearchtool.c b/gsearchtool/gsearchtool.c
index d078d968..0c8b5e9a 100644
--- a/gsearchtool/gsearchtool.c
+++ b/gsearchtool/gsearchtool.c
@@ -858,7 +858,11 @@ add_file_to_search_results (const gchar * file,
pixbuf = get_file_pixbuf (gsearch, file_info);
description = get_file_type_description (file, file_info);
- readable_size = g_format_size (g_file_info_get_size (file_info));
+ #if GLIB_CHECK_VERSION(2, 30, 0)
+ readable_size = g_format_size (g_file_info_get_size (file_info));
+ #else
+ readable_size = g_format_size_for_display (g_file_info_get_size (file_info));
+ #endif
g_file_info_get_modification_time (file_info, &time_val);
readable_date = get_readable_date (gsearch->search_results_date_format_string, time_val.tv_sec);