From c56177169d159f804beeb5bccd67ea6df0a8f1c9 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 22 Mar 2017 16:15:42 -0700 Subject: [PATCH] clarify use of the style editor for graphic style editing --- gramps/gui/plug/report/_styleeditor.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gramps/gui/plug/report/_styleeditor.py b/gramps/gui/plug/report/_styleeditor.py index dd55ed919..4571ceb84 100644 --- a/gramps/gui/plug/report/_styleeditor.py +++ b/gramps/gui/plug/report/_styleeditor.py @@ -193,8 +193,8 @@ class StyleListDisplay(ManagedWindow): #------------------------------------------------------------------------ class StyleEditor(ManagedWindow): """ - Edits the current style definition. Presents a dialog allowing the values - of the paragraphs in the style to be altered. + Edits the current style definition. + Presents a dialog allowing the values in the style to be altered. """ def __init__(self, name, style, parent): @@ -338,7 +338,12 @@ class StyleEditor(ManagedWindow): self.pname.set_use_markup(True) descr = g.get_description() - self.pdescription.set_text(descr or _("No description available")) + descr = descr or _("No description available") + p_style = g.get_paragraph_style() + if p_style: + para_note = _("(Embedded style '%s' must be edited separately)") + descr += '\n\n' + para_note % p_style + self.pdescription.set_text(descr) self.top.get_object("line_style").set_active(g.get_line_style()) self.top.get_object("line_width").set_value(g.get_line_width())