Add option to suppress tooltips in trees

svn: r6111
This commit is contained in:
Don Allingham
2006-03-09 19:07:13 +00:00
parent da3806725f
commit 45d3db4ea4
4 changed files with 47 additions and 21 deletions

View File

@@ -476,7 +476,10 @@ class PeopleModel(gtk.GenericTreeModel):
return None
def column_tooltip(self,data,node):
return ToolTips.TipFromFunction(self.db, lambda: self.db.get_person_from_handle(data[0]))
if const.use_tips:
return ToolTips.TipFromFunction(self.db, lambda: self.db.get_person_from_handle(data[0]))
else:
return u''
def column_int_id(self,data,node):