[gedit] snippets: fix overriding of get_start_iter()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] snippets: fix overriding of get_start_iter()
- Date: Sun, 4 Jan 2015 14:49:19 +0000 (UTC)
commit d48cd10bf0bb99ead7b1af1ead52f1e554ad239d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jan 4 12:50:51 2015 +0100
snippets: fix overriding of get_start_iter()
@iter is an (out) parameter.
https://bugzilla.gnome.org/show_bug.cgi?id=742015
plugins/snippets/snippets/completion.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index 774956a..81d4418 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -89,13 +89,14 @@ class Provider(GObject.Object, GtkSource.CompletionProvider):
else:
return None
- def do_get_start_iter(self, context, proposal, iter):
+ def do_get_start_iter(self, context, proposal):
+ iter = Gtk.TextIter()
if not self.mark or self.mark.get_deleted():
- return False
+ return (False, iter)
iter.assign(self.mark.get_buffer().get_iter_at_mark(self.mark))
- return True
+ return (True, iter)
def do_match(self, context):
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]