summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-pkgdata-browser2
-rw-r--r--scripts/oe-pkgdata-browser.glade4
2 files changed, 4 insertions, 2 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
diff --git a/scripts/oe-pkgdata-browser.glade b/scripts/oe-pkgdata-browser.glade
index 04e987b975..a6aae60bdd 100644
--- a/scripts/oe-pkgdata-browser.glade
+++ b/scripts/oe-pkgdata-browser.glade
@@ -289,12 +289,12 @@
289 </object> 289 </object>
290 </child> 290 </child>
291 <child> 291 <child>
292 <object class="GtkTreeViewColumn" id="treeviewcolumn4"> 292 <object class="GtkTreeViewColumn" id="file_size_column">
293 <property name="title" translatable="yes">Size</property> 293 <property name="title" translatable="yes">Size</property>
294 <property name="sort_indicator">True</property> 294 <property name="sort_indicator">True</property>
295 <property name="sort_column_id">1</property> 295 <property name="sort_column_id">1</property>
296 <child> 296 <child>
297 <object class="GtkCellRendererText" id="cellrenderertext4"/> 297 <object class="GtkCellRendererText" id="file_size_cell"/>
298 <attributes> 298 <attributes>
299 <attribute name="text">1</attribute> 299 <attribute name="text">1</attribute>
300 </attributes> 300 </attributes>