From 71eb683a3d95c499b6d82926344db52c69561c0e Mon Sep 17 00:00:00 2001 From: Worros Date: Mon, 26 Oct 2009 12:16:20 +0800 Subject: [PATCH] Make cash cols sortable. After sqlcoders effort this appears to work --- pyfpdb/GuiPlayerStats.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyfpdb/GuiPlayerStats.py b/pyfpdb/GuiPlayerStats.py index 2f330ce1..97d7db04 100644 --- a/pyfpdb/GuiPlayerStats.py +++ b/pyfpdb/GuiPlayerStats.py @@ -340,9 +340,6 @@ class GuiPlayerStats (threading.Thread): s = column[colheading] listcols.append(gtk.TreeViewColumn(s)) view.append_column(listcols[col]) - #listcols[col].set_clickable(True) - #listcols[col].set_sort_indicator(True) - #listcols[col].connect("clicked", self.sortcols, col) if column[colformat] == '%s': if column[colxalign] == 0.0: listcols[col].pack_start(textcell, expand=True) @@ -357,6 +354,9 @@ class GuiPlayerStats (threading.Thread): listcols[col].set_expand(True) #listcols[col].set_alignment(column[colxalign]) # no effect? if column[coltype] == 'cash': + listcols[col].set_clickable(True) + listcols[col].set_sort_indicator(True) + listcols[col].connect("clicked", self.sortcols, col) listcols[col].set_cell_data_func(numcell, self.ledger_style_render_func) else: listcols[col].set_cell_data_func(numcell, self.reset_style_render_func)