[gedit-latex] Add default args to scroll_to_iter



commit 688239ecc9bb2c9fbee88e02544e56483565b229
Author: John Stowers <john stowers gmail com>
Date:   Fri Jun 24 10:10:45 2011 +1200

    Add default args to scroll_to_iter

 latex/base/__init__.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/latex/base/__init__.py b/latex/base/__init__.py
index 579b35e..f251f3d 100644
--- a/latex/base/__init__.py
+++ b/latex/base/__init__.py
@@ -643,7 +643,7 @@ class Editor(object):
 		self._text_buffer.insert(iter, str(string))
 		
 		if scroll:
-			self._text_view.scroll_to_iter(iter, .25)
+			self._text_view.scroll_to_iter(iter, .25, False, 0.5, 0.5)
 		
 		# grab the focus again (necessary e.g. after symbol insert)
 		self._text_view.grab_focus()
@@ -655,7 +655,7 @@ class Editor(object):
 		@param string: a str
 		"""
 		self._text_buffer.insert(self._text_buffer.get_end_iter(), str(string))
-		self._text_view.scroll_to_iter(self._text_buffer.get_end_iter(), .25)
+		self._text_view.scroll_to_iter(self._text_buffer.get_end_iter(), .25, False, 0.5, 0.5)
 		
 		# grab the focus again (necessary e.g. after symbol insert)
 		self._text_view.grab_focus()
@@ -815,7 +815,7 @@ class Editor(object):
 		it_end = self._text_buffer.get_iter_at_offset(end_offset)
 		self._text_buffer.select_range(it_start, it_end)
 		# scroll
-		self._text_view.scroll_to_iter(it_end, .25)
+		self._text_view.scroll_to_iter(it_end, .25, False, 0.5, 0.5)
 	
 	def select_lines(self, start_line, end_line=None):
 		"""
@@ -833,7 +833,7 @@ class Editor(object):
 		# select
 		self._text_buffer.select_range(it_start, it_end)
 		# scroll
-		self._text_view.scroll_to_iter(it_end, .25)
+		self._text_view.scroll_to_iter(it_end, .25, False, 0.5, 0.5)
 	
 	#
 	# markers are used for highlighting (anonymous)



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