summaryrefslogtreecommitdiff
path: root/grc/gui/canvas/param.py
diff options
context:
space:
mode:
authorSeth Hitefield <sdhitefield@gmail.com>2017-05-03 07:06:54 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2017-05-03 07:07:59 -0700
commit486e0a9d06e43f3b8669471bef13a5eeedbda4c6 (patch)
tree7d35c5e7fd530f7ff420b9d3bb77ff5fc9fb2ecf /grc/gui/canvas/param.py
parent97b842874193394285ca4cdc11da381647c285fd (diff)
grc: gtk3: Converted actions to Gio.Action instead of Gtk.Action
Diffstat (limited to 'grc/gui/canvas/param.py')
-rw-r--r--grc/gui/canvas/param.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/canvas/param.py b/grc/gui/canvas/param.py
index 2ec99e70d8..b027b7653a 100644
--- a/grc/gui/canvas/param.py
+++ b/grc/gui/canvas/param.py
@@ -105,7 +105,7 @@ class Param(CoreParam):
if style < 0: # Front truncate
string = '...' + string[3-max_len:]
elif style == 0: # Center truncate
- string = string[:max_len/2 - 3] + '...' + string[-max_len/2:]
+ string = string[:max_len//2 - 3] + '...' + string[-max_len//2:]
elif style > 0: # Rear truncate
string = string[:max_len-3] + '...'
return string