summaryrefslogtreecommitdiff
path: root/gsearchtool/gsearchtool.c
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 /gsearchtool/gsearchtool.c
parent0e091139e7b8c7a556ac0dc8b013b555933428ca (diff)
downloadmate-utils-381d345351f1d3a0fb34bb125f1411af61ce67ad.tar.bz2
mate-utils-381d345351f1d3a0fb34bb125f1411af61ce67ad.tar.xz
add support for older glib versions
Diffstat (limited to 'gsearchtool/gsearchtool.c')
-rw-r--r--gsearchtool/gsearchtool.c6
1 files changed, 5 insertions, 1 deletions
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);