Merge branch 'maint'

This commit is contained in:
Johnathan Corgan 2015-12-07 15:38:59 -08:00
commit a256976b1a
2 changed files with 3 additions and 3 deletions

View File

@ -442,7 +442,7 @@ BUSSIFY_SINKS = Action(
)
XML_PARSER_ERRORS_DISPLAY = Action(
label='_Parser Errors',
tooltip='View errors that occured while parsing XML files',
tooltip='View errors that occurred while parsing XML files',
stock_id=gtk.STOCK_DIALOG_ERROR,
)
FLOW_GRAPH_OPEN_QSS_THEME = Action(

View File

@ -206,7 +206,7 @@ class Block(Element):
#display the params
if self.is_dummy_block():
markups = [
'<span foreground="black" font_desc="$font"><b>key: </b>{key}</span>'.format(font=PARAM_FONT, key=self._key)
'<span foreground="black" font_desc="{font}"><b>key: </b>{key}</span>'.format(font=PARAM_FONT, key=self._key)
]
else:
markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')]
@ -215,7 +215,7 @@ class Block(Element):
layout.set_spacing(LABEL_SEPARATION*pango.SCALE)
layout.set_markup('\n'.join(markups))
layouts.append(layout)
w,h = layout.get_pixel_size()
w, h = layout.get_pixel_size()
self.label_width = max(w, self.label_width)
self.label_height += h + LABEL_SEPARATION
width = self.label_width