[meld] Use cursor struct in current-line highlighting
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Use cursor struct in current-line highlighting
- Date: Sun, 14 Mar 2010 08:54:26 +0000 (UTC)
commit 22b9a31ca0b5aedfd7b40b251c3ff09f89b03cde
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Sep 28 06:10:15 2009 +1000
Use cursor struct in current-line highlighting
meld/filediff.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 003fd8c..621610d 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -890,9 +890,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
draw_change(change)
if textview.is_focus():
- context.set_line_width(3)
- curline = textview.get_buffer().get_iter_at_mark( textview.get_buffer().get_insert() ).get_line()
- ypos, height = self._line_to_pixel_plus_height(pane, curline)
+ ypos, height = self._line_to_pixel_plus_height(pane, self.cursor.line)
context.set_source_rgba(1,1,0,.25)
context.rectangle(0,ypos-visible.y, width, height)
context.fill()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]