summaryrefslogtreecommitdiff
path: root/grc/gui/canvas/flowgraph.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2017-01-10 17:54:02 +0100
committerSebastian Koslowski <koslowski@kit.edu>2017-01-11 21:33:25 +0100
commit502c63d341bd839f597a3d23708c72e2aa888bf1 (patch)
treefdaa588cde56739a5b63d10df12da6c24267e1d3 /grc/gui/canvas/flowgraph.py
parentc52deb5f43cfd5a7083f3568719d88ac09ac838f (diff)
grc: gtk3: curved connections
Diffstat (limited to 'grc/gui/canvas/flowgraph.py')
-rw-r--r--grc/gui/canvas/flowgraph.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/grc/gui/canvas/flowgraph.py b/grc/gui/canvas/flowgraph.py
index ac15510072..9cf5fe44c6 100644
--- a/grc/gui/canvas/flowgraph.py
+++ b/grc/gui/canvas/flowgraph.py
@@ -26,15 +26,13 @@ from distutils.spawn import find_executable
from itertools import count
import six
-from six.moves import filter
-
from gi.repository import GLib
+from six.moves import filter
+from . import colors
from .drawable import Drawable
-
-from .. import Actions, Colors, Constants, Utils, Bars, Dialogs
+from .. import Actions, Constants, Utils, Bars, Dialogs
from ..external_editor import ExternalEditor
-
from ...core import Messages
from ...core.FlowGraph import FlowGraph as CoreFlowgraph
@@ -495,9 +493,9 @@ class FlowGraph(CoreFlowgraph, Drawable):
x, y = int(min(x1, x2)), int(min(y1, y2))
w, h = int(abs(x1 - x2)), int(abs(y1 - y2))
cr.set_source_rgba(
- Colors.HIGHLIGHT_COLOR[0],
- Colors.HIGHLIGHT_COLOR[1],
- Colors.HIGHLIGHT_COLOR[2],
+ colors.HIGHLIGHT_COLOR[0],
+ colors.HIGHLIGHT_COLOR[1],
+ colors.HIGHLIGHT_COLOR[2],
0.5,
)
cr.rectangle(x, y, w, h)