Just like the package sizes already are shown.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
self.file_store = builder.get_object("file_store")
self.file_store.set_sort_column_id(FileColumns.Filename, Gtk.SortType.ASCENDING)
+ 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])))
+
self.files_view = builder.get_object("files_scrollview")
self.files_label = builder.get_object("files_label")
</object>
</child>
<child>
- <object class="GtkTreeViewColumn" id="treeviewcolumn4">
+ <object class="GtkTreeViewColumn" id="file_size_column">
<property name="title" translatable="yes">Size</property>
<property name="sort_indicator">True</property>
<property name="sort_column_id">1</property>
<child>
- <object class="GtkCellRendererText" id="cellrenderertext4"/>
+ <object class="GtkCellRendererText" id="file_size_cell"/>
<attributes>
<attribute name="text">1</attribute>
</attributes>