'Add columns to main log table.'

def __add_columns(self, treeview):

    model = treeview.get_model()
    column = gtk.TreeViewColumn(_('ID'), gtk.CellRendererText(), text=0)
    column.set_sort_column_id(0)
    treeview.append_column(column)
    '\n                                renderer    =    gtk.CellRendererToggle()\n                                renderer.set_property(\'activatable\',    True)\n                                renderer.connect(\'toggled\',    self.toggle_bookmark,    model)\n                                column    =    gtk.TreeViewColumn(_(\'B\'),    renderer)\n                                column.add_attribute(renderer,    "active",    1)\n                                column.set_sort_column_id(1)\n                                treeview.append_column(column)\n                                '
    column = gtk.TreeViewColumn(_('Method'), gtk.CellRendererText(), text=2)
    column.set_sort_column_id(2)
    treeview.append_column(column)
    renderer = gtk.CellRendererText()
    renderer.set_property('ellipsize', pango.ELLIPSIZE_END)
    column = gtk.TreeViewColumn('URI', renderer, text=3)
    column.set_sort_column_id(3)
    column.set_expand(True)
    column.set_resizable(True)
    treeview.append_column(column)
    renderer = gtk.CellRendererText()
    renderer.set_property('editable', True)
    renderer.connect('edited', self.edit_tag, model)
    column = gtk.TreeViewColumn(_('Tag'), renderer, text=4)
    column.set_sort_column_id(4)
    column.set_resizable(True)
    column.set_sizing(gtk.TREE_VIEW_COLUMN_GROW_ONLY)
    treeview.append_column(column)
    extColumns = [(5, _('Code')), (6, _('Message')), (7, _('Content-Length')), (8, _('Content-Type')), (9, _('Time    (ms)'))]
    for (n, title) in extColumns:
        column = gtk.TreeViewColumn(title, gtk.CellRendererText(), text=n)
        column.set_sort_column_id(n)
        treeview.append_column(column)
