def on_get_value(self, iter, column): '''Returns the data for a specific column''' if iter.hint == IS_TAG: if column == NAME_COL: return iter.row['name'] elif column == TIP_COL: return encode_markup_text(iter.row['name']) elif column == PATH_COL: return IndexTag(*iter.row) elif column == EXISTS_COL: return True elif column == STYLE_COL: return Pango.Style.NORMAL elif column == WEIGHT_COL: return Pango.Weight.NORMAL elif column == N_CHILD_COL: return iter.n_children else: if self.show_full_page_name \ and column == NAME_COL and len(iter.treepath) == 2: # Show top level pages with full contex # top level tree is tags, so top level pages len(path) is 2 return iter.row['name'] else: return PageTreeStoreBase.on_get_value(self, iter, column)
def on_get_value(self, iter, column): '''Returns the data for a specific column''' if self.show_full_page_name \ and column == NAME_COL and len(iter.treepath) == 1: # Show top level pages with full contex return iter.row['name'] else: return PageTreeStoreBase.on_get_value(self, iter, column)