[gedit-latex/gnome-3-0] Fix completion for more than ten entries.



commit 145e4fb24da0c23d6adfdb9f4a1362c6ce44f44d
Author: Josà Aliste <jaliste src gnome org>
Date:   Wed Jun 29 14:35:18 2011 -0400

    Fix completion for more than ten entries.

 latex/base/completion.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/latex/base/completion.py b/latex/base/completion.py
index 3b9e176..973b5ae 100644
--- a/latex/base/completion.py
+++ b/latex/base/completion.py
@@ -143,9 +143,10 @@ class ProposalPopup(Gtk.Window):
 			return
 		
 		path, column = self._view.get_cursor()
-		index = int(path.to_string()[0])
+		index = int(path.to_string())
 		max = self._store.iter_n_children(None)
-		
+		print path, column 
+		print "Navigate", index, d, max	
 		index += d
 		
 		if index < 0:
@@ -184,7 +185,7 @@ class ProposalPopup(Gtk.Window):
 		"""
 		try:
 			path, column = self._view.get_cursor()
-			index = int(path.to_string()[0])
+			index = int(path.to_string())
 
 			proposal = self._store[index][1]
 			



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]