summaryrefslogtreecommitdiff
path: root/grc/gui/Block.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-06-15 20:27:21 -0700
committerSebastian Koslowski <koslowski@kit.edu>2016-07-13 16:33:28 +0200
commit5f4d39e233e041b8a2f5006439a636a49d6e56ea (patch)
treeca3a245c2cf42613662a562cfa07c42668f4e5e0 /grc/gui/Block.py
parent38dc5e454b78b0f3e7e8af40c4b6e2a6cb15eec9 (diff)
grc-refactor: Block: remove name getter
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r--grc/gui/Block.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index 49bba4f3db..fd6612b8c2 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -127,7 +127,7 @@ class Block(Element, _Block):
#create the main layout
layout = Gtk.DrawingArea().create_pango_layout('')
layout.set_markup('<span foreground="{foreground}" font_desc="{font}"><b>{name}</b></span>'.format(
- foreground='black' if self.is_valid() else 'red', font=BLOCK_FONT, name=Utils.encode(self.get_name())
+ foreground='black' if self.is_valid() else 'red', font=BLOCK_FONT, name=Utils.encode(self.name)
))
self.label_width, self.label_height = layout.get_pixel_size()
self.layouts.append(layout)