Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Area.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-07-24 17:41:56 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-08-10 13:49:30 (GMT)
commitca94b8e6eaf957b439486e4ab93725586e530e57 (patch)
treefcae16558300192c800c22fcda5a2dcafdabf98c /Area.py
parentf83130ace70412a9e1de6a069b858b0ac4827466 (diff)
Improve visualization of selection border in a black background
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'Area.py')
-rw-r--r--Area.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Area.py b/Area.py
index 23cf5da..9c2acbb 100644
--- a/Area.py
+++ b/Area.py
@@ -244,11 +244,14 @@ class Area(gtk.DrawingArea):
x, y, width, height = self.get_selection_bounds()
ctx.save()
ctx.set_line_width(1)
+ ctx.set_source_rgba(1., 1., 1., 1.)
+ ctx.rectangle(x, y, width, height)
+ ctx.stroke_preserve()
+
ctx.set_line_cap(cairo.LINE_CAP_ROUND)
ctx.set_line_join(cairo.LINE_JOIN_ROUND)
ctx.set_dash([5, 5], 0)
ctx.set_source_rgba(0., 0., 0., 1.)
- ctx.rectangle(x, y, width, height)
ctx.stroke()
ctx.restore()