=== modified file 'softwarecenter/ui/gtk3/widgets/apptreeview.py' --- softwarecenter/ui/gtk3/widgets/apptreeview.py 2012-04-16 09:38:51 +0000 +++ softwarecenter/ui/gtk3/widgets/apptreeview.py 2012-04-24 08:37:44 +0000 @@ -68,7 +68,7 @@ # we use it so that orca and other a11y tools get proper text to read # it needs to be the first one, because that is what the tools look # at by default - tr = CellRendererAppView(icons, + self.tr = tr = CellRendererAppView(icons, self.create_pango_layout(''), show_ratings, Icons.INSTALLED_OVERLAY) @@ -92,7 +92,7 @@ tr.button_pack_start(info) tr.button_pack_end(action) - column = Gtk.TreeViewColumn("Applications", tr, + self.column = column = Gtk.TreeViewColumn("Applications", tr, application=AppGenericStore.COL_ROW_DATA) column.set_cell_data_func(tr, self._cell_data_func_cb) column.set_fixed_width(200) @@ -144,6 +144,11 @@ model.clear() self.set_model(model) + def set_model(self, model): + self.column.set_cell_data_func(self.tr, None) + Gtk.TreeView.set_model(self, model) + self.column.set_cell_data_func(self.tr, self._cell_data_func_cb) + def expand_path(self, path): if path is not None and not isinstance(path, Gtk.TreePath): raise TypeError("Expects Gtk.TreePath or None, got %s" %