update documentation
svn: r12780
This commit is contained in:
parent
181c0c9b41
commit
d49e1f0ec7
@ -370,8 +370,12 @@ class FlatBaseModel(gtk.GenericTreeModel):
|
|||||||
self.prev_data = None
|
self.prev_data = None
|
||||||
self.set_property("leak_references", False)
|
self.set_property("leak_references", False)
|
||||||
self.db = db
|
self.db = db
|
||||||
|
#normally sort on first column, so scol=0
|
||||||
if sort_map:
|
if sort_map:
|
||||||
|
#sort_map is the stored order of the columns and if they are
|
||||||
|
#enabled or not. We need to store on scol of that map
|
||||||
self.sort_map = [ f for f in sort_map if f[0]]
|
self.sort_map = [ f for f in sort_map if f[0]]
|
||||||
|
#we need the model col, that corresponds with scol
|
||||||
col = self.sort_map[scol][1]
|
col = self.sort_map[scol][1]
|
||||||
self.sort_func = self.smap[col]
|
self.sort_func = self.smap[col]
|
||||||
else:
|
else:
|
||||||
@ -612,7 +616,8 @@ class FlatBaseModel(gtk.GenericTreeModel):
|
|||||||
|
|
||||||
def on_get_value(self, handle, col):
|
def on_get_value(self, handle, col):
|
||||||
"""
|
"""
|
||||||
See gtk.TreeModel
|
See gtk.TreeModel.
|
||||||
|
col is the model column that is needed, not the visible column!
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
if handle != self.prev_handle:
|
if handle != self.prev_handle:
|
||||||
|
Loading…
Reference in New Issue
Block a user