Re: g_format_file_size_for_display()
- From: Sven Neumann <sven gimp org>
- To: Federico Mena Quintero <federico ximian com>
- Cc: GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: g_format_file_size_for_display()
- Date: Wed, 19 Dec 2007 08:52:27 +0100
Hi,
On Tue, 2007-12-18 at 17:14 -0600, Federico Mena Quintero wrote:
> > 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.
>
> No, because then you'll have applications using either, and then someone
> will want to make them consistent and we'll get an option in the control
> center an an XSETTING, which is yet another thing we'll have to port
> over when moving from GConf to DConf, and it's just a big fat mess.
Yes, because this is a choice that the application developer needs to
make, not the user. So this is never going to become am option in the
control center or an XSETTING. We just need to make sure that the API
docs give the application developer the information they need to make
the right choice.
> Back to my original question: should this function be called
> g_format_size_for_display()? It's not for files only.
Yes, we all seem to agree that this function is useful for other things
than file sizes. But we should try to get it right. Otherwise it is
simply not going to be used and we force application developers to
invent their own function.
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]