Home GnuPG

efl: Convert pinentry description to markup.

Description

efl: Convert pinentry description to markup.

* efl/pinentry-efl.c (create_window): Convert all UI strings to markup
text.

elm_object_text_set() expects markup text as input, leading all special
characters to not be displayed. For example all \n are mangled making
the EFL pinentry box more difficult to read. This patch makes use of
elm_entry_utf8_to_markup() to convert special characters to markup
understood by EFL.

pinentry->title, description, error etc are all guaranteed to be UTF-8
from libgpg-error and since elm_entry_utf8_to_markup () is expecting all
input to be UTF-8, there is no need to make intermediary call to
pinentry_utf8_to_local().

  • Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>

Details

Provenance
beberAuthored on Feb 13 2021, 4:18 PM
gouttegdCommitted on Feb 16 2021, 1:42 PM
Parents
rP8fcbc9f40102: efl: Ensure pinentry window is activated.
Branches
Unknown
Tags
Unknown