[Xfce-bugs] [Bug 11690] Add setting to show file sizes in bytes
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sat Sep 17 19:32:16 CEST 2016
https://bugzilla.xfce.org/show_bug.cgi?id=11690
Adam Purkrt <adam at purkrt.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adam at purkrt.net
--- Comment #1 from Adam Purkrt <adam at purkrt.net> ---
Created attachment 6847
--> https://bugzilla.xfce.org/attachment.cgi?id=6847&action=edit
thunar-size-label.patch
+1 to this enhancement.
The exact size would be useful also in directory properties dialog,
e.g. for quick check when synchronizing directories, when updating
a backup copy on a flashdisk. The human readable value is rounded
and not very useful in this regard.
Attached is a proposed patch (only) for the properties dialog. The patch is
"quick and dirty", just to show what I have on mind.
Looking at g_format_size_full function's GFormatSizeFlags
https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html#GFormatSizeFlags
the G_FORMAT_SIZE_LONG_FORMAT is basically what I would like to see in
the properties dialog - and, also, in the status line.
But
1) the "LONG_FORMAT" is only with decimal units, there is no long format with
IEC
units (KiB MiB and the like, "file size in binary format")
2) Returning to the original request comment #1, there is no GFormatSizeFlags
to get e.g. "1,024,580" output.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list