diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2020-01-08 04:44:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-10 21:18:22 +0000 |
commit | 5501713b16549a908bf31940a14a4250a46b797d (patch) | |
tree | 30ff0fac02f1bd7d76523c86351ae0746441c2e4 /scripts/oe-pkgdata-browser | |
parent | 49bd49c7c63b9f7ef8f062da32de11171776a461 (diff) | |
download | poky-5501713b16549a908bf31940a14a4250a46b797d.tar.gz |
oe-pkgdata-browser: Show file sizes in a human readable format
Just like the package sizes already are shown.
(From OE-Core rev: 8e7a4328a3123e2bcc7fe5fc9d27e4e92160fbb9)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-pkgdata-browser')
-rwxr-xr-x | scripts/oe-pkgdata-browser | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-browser b/scripts/oe-pkgdata-browser index 36b5e798fa..57e56f66ee 100755 --- a/scripts/oe-pkgdata-browser +++ b/scripts/oe-pkgdata-browser | |||
@@ -133,6 +133,8 @@ class PkgUi(): | |||
133 | 133 | ||
134 | self.file_store = builder.get_object("file_store") | 134 | self.file_store = builder.get_object("file_store") |
135 | self.file_store.set_sort_column_id(FileColumns.Filename, Gtk.SortType.ASCENDING) | 135 | self.file_store.set_sort_column_id(FileColumns.Filename, Gtk.SortType.ASCENDING) |
136 | builder.get_object("file_size_column").set_cell_data_func(builder.get_object("file_size_cell"), lambda column, cell, model, iter, data: cell.set_property("text", human_size(model[iter][FileColumns.Size]))) | ||
137 | |||
136 | self.files_view = builder.get_object("files_scrollview") | 138 | self.files_view = builder.get_object("files_scrollview") |
137 | self.files_label = builder.get_object("files_label") | 139 | self.files_label = builder.get_object("files_label") |
138 | 140 | ||