From 03c3d3f030b9dc20a005a00668ca6aa69cb75de0 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Wed, 15 Jun 2016 20:49:34 -0700
Subject: grc-refactor: Block: remove key getters

---
 grc/gui/Param.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'grc/gui/Param.py')

diff --git a/grc/gui/Param.py b/grc/gui/Param.py
index a630f5faa3..c888b9ebc0 100644
--- a/grc/gui/Param.py
+++ b/grc/gui/Param.py
@@ -66,7 +66,7 @@ class Param(Element, _Param):
         # fixme: using non-public attribute here
         has_callback = \
             hasattr(block, 'get_callbacks') and \
-            any(self.get_key() in callback for callback in block._callbacks)
+            any(self.key in callback for callback in block._callbacks)
 
         return '<span underline="{line}" foreground="{color}" font_desc="Sans 9">{label}</span>'.format(
             line='low' if has_callback else 'none',
@@ -78,7 +78,7 @@ class Param(Element, _Param):
 
     def format_tooltip_text(self):
         errors = self.get_error_messages()
-        tooltip_lines = ['Key: ' + self.get_key(), 'Type: ' + self.get_type()]
+        tooltip_lines = ['Key: ' + self.key, 'Type: ' + self.get_type()]
         if self.is_valid():
             value = str(self.get_evaluated())
             if len(value) > 100:
-- 
cgit v1.2.3