[meld] Inline _get_line_count()
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Inline _get_line_count()
- Date: Sat, 6 Mar 2010 07:13:11 +0000 (UTC)
commit e1dc2572128ff78aa506fab25c9f309099587a80
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Oct 11 17:21:25 2009 +1000
Inline _get_line_count()
meld/filediff.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index a9af78f..e50497e 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1115,7 +1115,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
line = it.get_line() + ((master_y-line_y)/height)
for (i,adj) in others:
- mbegin,mend, obegin,oend = 0, self._get_line_count(master), 0, self._get_line_count(i)
+ mbegin, mend = 0, self.textbuffer[master].get_line_count()
+ obegin, oend = 0, self.textbuffer[i].get_line_count()
# look for the chunk containing 'line'
for c in self.linediffer.pair_changes(master, i):
if c[1] >= line:
@@ -1195,10 +1196,6 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
return 1
return 0
- def _get_line_count(self, index):
- """Return the number of lines in the buffer of textview 'text'"""
- return self.textbuffer[index].get_line_count()
-
def set_num_panes(self, n):
if n != self.num_panes and n in (1,2,3):
self.num_panes = n
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]