Hi,

On Tue, 2007-12-18 at 16:45 -0500, David Zeuthen wrote:
> On Tue, 2007-12-18 at 14:50 -0600, Federico Mena Quintero wrote:
> > Should this be called generically g_format_size_for_display()?  You
> > could use it for more than file sizes (free RAM in gnome-system-monitor,
> > etc.).
> 
> It's here btw
> 
> http://svn.gnome.org/viewvc/glib/trunk/glib/gfileutils.c?revision=6076&view=markup
> 
> char *g_format_file_size_for_display (goffset size);
> 
> Ideally this one needs to take another parameter indicating whether you
> want 1kb = 1000 bytes or 1kb = 1024 bytes. 

We should also decide then whether the displayed size should use MB or
MiB, see http://en.wikipedia.org/wiki/Mebibyte and
http://www.iec.ch/zone/si/si_bytes.htm


Sven


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to