diff options
Diffstat (limited to 'gsearchtool')
-rw-r--r-- | gsearchtool/gsearchtool.c | 6 |
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); |