clarify use of the style editor for graphic style editing

This commit is contained in:
Paul Franklin 2017-03-22 16:15:42 -07:00
parent 9246484876
commit c56177169d

View File

@ -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())