[meld: 170/180] gutterrendererchunk: Fix highlight drawing for the current chunk
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 170/180] gutterrendererchunk: Fix highlight drawing for the current chunk
- Date: Thu, 23 Jul 2015 21:45:40 +0000 (UTC)
commit 52580ce44e83961a017a7ae1ebaa61461d68c2e2
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Jul 4 08:28:04 2015 +1000
gutterrendererchunk: Fix highlight drawing for the current chunk
meld/gutterrendererchunk.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/meld/gutterrendererchunk.py b/meld/gutterrendererchunk.py
index 5c57896..10a774d 100644
--- a/meld/gutterrendererchunk.py
+++ b/meld/gutterrendererchunk.py
@@ -136,7 +136,13 @@ class GutterRendererChunkAction(GtkSource.GutterRendererPixbuf):
background_area.x - 1, y,
background_area.width + 2, height)
context.set_source_rgba(*self.fill_colors[chunk[0]])
+
+ if self.props.view.current_chunk_check(chunk):
+ context.fill_preserve()
+ highlight = self.fill_colors['current-chunk-highlight']
+ context.set_source_rgba(*highlight)
context.fill()
+
context.set_source_rgba(*self.line_colors[chunk[0]])
if line == chunk[1]:
context.move_to(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]