[gedit-plugins] Use Gedit.utils_text_iter_assign in multiedit



commit 189dd9e54dbb7b333684bd18eaf5d72199a432b7
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Thu Apr 7 19:20:09 2011 +0200

    Use Gedit.utils_text_iter_assign in multiedit

 plugins/multiedit/multiedit/documenthelper.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index 5bd2982..0ee9715 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -905,6 +905,9 @@ class DocumentHelper(Signals):
                 if hasattr(start, 'assign'):
                     start.assign(piter)
                     end.assign(piter)
+                elif hasattr(Gedit, 'utils_text_iter_assign'):
+                    Gedit.utils_text_iter_assign(start, piter)
+                    Gedit.utils_text_iter_assign(end, piter)
             else:
                 self.remove_edit_points()
 



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