diff options
author | Steve Zesch <[email protected]> | 2012-11-15 21:41:46 -0500 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-11-15 21:41:46 -0500 |
commit | 266894647388df80ab6bc6d3b38201db863a9488 (patch) | |
tree | ca04bb43cb782ef8ec83500b3ef91cc82981f0a5 /baobab/src/baobab-prefs.c | |
parent | a4d1cf67a9a6b841b41c5ee28809bdcbc2ff44f3 (diff) | |
download | mate-utils-266894647388df80ab6bc6d3b38201db863a9488.tar.bz2 mate-utils-266894647388df80ab6bc6d3b38201db863a9488.tar.xz |
Fixed g_format_size_for_display deprecations. Closes #5.
Diffstat (limited to 'baobab/src/baobab-prefs.c')
-rw-r--r-- | baobab/src/baobab-prefs.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/baobab/src/baobab-prefs.c b/baobab/src/baobab-prefs.c index c440aa7f..48a75b9c 100644 --- a/baobab/src/baobab-prefs.c +++ b/baobab/src/baobab-prefs.c @@ -259,8 +259,15 @@ fill_props_model (GtkListStore *store) glibtop_get_fsusage (&fsusage, mountentry->mountdir); fstotal = fsusage.blocks * fsusage.block_size; fsavail = fsusage.bfree * fsusage.block_size; - total = g_format_size_for_display(fstotal); - avail = g_format_size_for_display(fsavail); + + #if GLIB_CHECK_VERSION (2, 30, 0) + total = g_format_size(fstotal); + avail = g_format_size(fsavail); + #else + total = g_format_size_for_display(fstotal); + avail = g_format_size_for_display(fsavail); + #endif + file = g_file_new_for_path (mountentry->mountdir); uri = g_file_get_uri (file); excluded = baobab_is_excluded_location (file); |