Calendar: Use the death symbol defined in pref (#1167)

This commit is contained in:
Serge Noiraud 2021-01-12 11:08:35 +01:00 committed by GitHub
parent 7443cf4207
commit 0bc546cb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ import logging
# Gramps module
#------------------------------------------------------------------------
from gramps.gen.const import GRAMPS_LOCALE as glocale
from gramps.gen.config import config
from gramps.gen.lib import Date, Name, NameType, Person
from gramps.gen.lib.date import Today
from gramps.gen.utils.alive import probably_alive
@ -1348,7 +1349,7 @@ def get_day_list(event_date, holiday_list, bday_anniv_list, rlocale=glocale):
age_str = age_str.format(precision=1, as_age=False, dlocale=rlocale)
symbols = Symbols()
death_idx = symbols.DEATH_SYMBOL_SHADOWED_LATIN_CROSS
death_idx = config.get('utf8.death-symbol')
death_symbol = symbols.get_death_symbol_for_char(death_idx)
# a birthday

View File

@ -2164,7 +2164,7 @@ def get_day_list(event_date, holiday_list, bday_anniv_list, rlocale=glocale):
age_str = age_str.format(precision=1, as_age=False, dlocale=rlocale)
symbols = Symbols()
death_idx = symbols.DEATH_SYMBOL_SHADOWED_LATIN_CROSS
death_idx = config.get('utf8.death-symbol')
death_symbol = symbols.get_death_symbol_for_char(death_idx)
# a birthday