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 /logview | |
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 'logview')
-rw-r--r-- | logview/logview-window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/logview/logview-window.c b/logview/logview-window.c index 11bb4fbe..54a48430 100644 --- a/logview/logview-window.c +++ b/logview/logview-window.c @@ -209,7 +209,12 @@ logview_update_statusbar (LogviewWindow *logview, LogviewLog *active) modified = g_strdup_printf (_("last update: %s"), timestring_utf8); - size = g_format_size_for_display (logview_log_get_file_size (active)); + #if GLIB_CHECK_VERSION (2, 30, 0) + size = g_format_size (logview_log_get_file_size (active)); + #else + size = g_format_size_for_display (logview_log_get_file_size (active)); + #endif + statusbar_text = g_strdup_printf (_("%d lines (%s) - %s"), logview_log_get_cached_lines_number (active), size, modified); |