[gedit-plugins] multiedit: use assign from gtk+
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] multiedit: use assign from gtk+
- Date: Tue, 6 Sep 2011 10:53:30 +0000 (UTC)
commit 3ccb324716f890f2eb8930bfeca7e60dc4794bc0
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Sep 6 10:55:36 2011 +0200
multiedit: use assign from gtk+
plugins/multiedit/multiedit/documenthelper.py | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index 9288fa4..93ae720 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -806,11 +806,7 @@ class DocumentHelper(Signals):
self.remove_edit_points()
iterwas = buf.get_iter_at_mark(wasat)
-
- if hasattr(where, 'assign'):
- where.assign(iterwas)
- elif hasattr(Gedit, 'utils_text_iter_assign'):
- Gedit.utils_text_iter_assign(where, iterwas)
+ where.assign(iterwas)
if atinsert:
buf.move_mark(buf.get_insert(), iterwas)
@@ -901,13 +897,8 @@ class DocumentHelper(Signals):
piter = buf.get_iter_at_mark(orig)
buf.delete_mark(orig)
- # To be able to have it not crash with old pygtk
- 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)
+ start.assign(piter)
+ end.assign(piter)
else:
self.remove_edit_points()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]