summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-02 09:51:57 +0200
committerStefano Karapetsas <[email protected]>2012-10-02 09:51:57 +0200
commit381d345351f1d3a0fb34bb125f1411af61ce67ad (patch)
tree3500885130ef2e060e9c51a08fb536438b3f2468
parent0e091139e7b8c7a556ac0dc8b013b555933428ca (diff)
downloadmate-utils-381d345351f1d3a0fb34bb125f1411af61ce67ad.tar.bz2
mate-utils-381d345351f1d3a0fb34bb125f1411af61ce67ad.tar.xz
add support for older glib versions
-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);