[meld] Inline draw_change()
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Inline draw_change()
- Date: Tue, 23 Mar 2010 22:43:45 +0000 (UTC)
commit f2e5478acf80046eed47a00202357540e5ed9503
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Mar 20 13:05:56 2010 +1000
Inline draw_change()
meld/filediff.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 4e7fc4f..1f875ab 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -871,7 +871,12 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
context.clip()
context.set_line_width(1.0)
- def draw_change(change): # draw background and thin lines
+ for change in self.linediffer.single_changes(pane):
+ if change[2] < start_line:
+ continue
+ if change[1] > end_line:
+ break
+
ypos0 = self._line_to_pixel(pane, change[1]) - visible.y
ypos1 = self._line_to_pixel(pane, change[2]) - visible.y
@@ -882,11 +887,6 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
context.set_source_rgb(*self.line_colors[change[0]])
context.stroke()
- for change in self.linediffer.single_changes(pane):
- if change[2] < start_line: continue
- if change[1] > end_line: break
- draw_change(change)
-
if textview.is_focus() and self.cursor.line is not None:
ypos, height = self._line_to_pixel_plus_height(pane, self.cursor.line)
context.set_source_rgba(1,1,0,.25)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]