clarify use of the style editor for graphic style editing
This commit is contained in:
parent
9246484876
commit
c56177169d
@ -193,8 +193,8 @@ class StyleListDisplay(ManagedWindow):
|
|||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
class StyleEditor(ManagedWindow):
|
class StyleEditor(ManagedWindow):
|
||||||
"""
|
"""
|
||||||
Edits the current style definition. Presents a dialog allowing the values
|
Edits the current style definition.
|
||||||
of the paragraphs in the style to be altered.
|
Presents a dialog allowing the values in the style to be altered.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name, style, parent):
|
def __init__(self, name, style, parent):
|
||||||
@ -338,7 +338,12 @@ class StyleEditor(ManagedWindow):
|
|||||||
self.pname.set_use_markup(True)
|
self.pname.set_use_markup(True)
|
||||||
|
|
||||||
descr = g.get_description()
|
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_style").set_active(g.get_line_style())
|
||||||
self.top.get_object("line_width").set_value(g.get_line_width())
|
self.top.get_object("line_width").set_value(g.get_line_width())
|
||||||
|
Loading…
Reference in New Issue
Block a user