[gedit-plugins] Use Gedit.utils_text_iter_assign if it is available



commit 90481b8077cba4e0a4745268f75c55bb28ec6879
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Tue Mar 22 16:02:53 2011 +0100

    Use Gedit.utils_text_iter_assign if it is available

 plugins/multiedit/multiedit/documenthelper.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index fc40704..5bd2982 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -809,6 +809,8 @@ class DocumentHelper(Signals):
 
         if hasattr(where, 'assign'):
             where.assign(iterwas)
+        elif hasattr(Gedit, 'utils_text_iter_assign'):
+            Gedit.utils_text_iter_assign(where, iterwas)
 
         if atinsert:
             buf.move_mark(buf.get_insert(), iterwas)



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