* src/plugins.glade: Switch from GtkDialog to GtkWindow (prevents it
from always being on top under metacity). Remove extra button. * src/Plugins.py (PluginDialog.__init__): Provide custom labels and tooltips for reports (Generate) and tools (Run); (ReportPlugins.__init__, ToolPlugins.__init__): call PluginDialog with appropriate labels and tooltips. * src/Report.py (BareReportDialog.__init__): Change button back to OK. * src/plugins/rel_ru.py (getallancestors): Replace with existing apply_filter from Relationship.py. * src/gramps.glade: Correct tooltips in Family Views (make parents an active family). svn: r2249
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
import RelLib
|
||||
import GrampsCfg
|
||||
from Relationship import apply_filter as getallancestors
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -104,16 +105,6 @@ _niece_level = [
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def getallancestors(person,index,ancestorlist,ancestormap):
|
||||
if person == None:
|
||||
return
|
||||
ancestorlist.append(person)
|
||||
ancestormap[person.getId()] = index
|
||||
|
||||
family = person.getMainParents()
|
||||
if family != None:
|
||||
getallancestors(family.getFather(),index+1,ancestorlist,ancestormap)
|
||||
getallancestors(family.getMother(),index+1,ancestorlist,ancestormap)
|
||||
|
||||
def get_junior_male_cousin(level,removed):
|
||||
if removed > len(_junior_male_removed_level)-1 or level>len(_male_cousin_level)-1:
|
||||
|
Reference in New Issue
Block a user