[gtk+] Switch to g_format_size()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Switch to g_format_size()
- Date: Wed, 20 Jul 2011 18:23:37 +0000 (UTC)
commit 4ead7b69ea081f50ddf1d39ba6e24e013bed13f9
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jul 20 20:22:26 2011 +0200
Switch to g_format_size()
g_format_size_for_display() has been deprecated in GLib and replaced with
g_format_size(). Follow that change.
gtk/gtkfilechooserdefault.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index db048f8..57c0162 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -6645,7 +6645,7 @@ file_system_model_set (GtkFileSystemModel *model,
if (info == NULL || _gtk_file_info_consider_as_directory (info))
g_value_set_string (value, NULL);
else
- g_value_take_string (value, g_format_size_for_display (g_file_info_get_size (info)));
+ g_value_take_string (value, g_format_size (g_file_info_get_size (info)));
break;
case MODEL_COL_MTIME:
case MODEL_COL_MTIME_TEXT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]