[gedit/gnome-3-14] snippets: fix overriding of get_start_iter()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-14] snippets: fix overriding of get_start_iter()
- Date: Sun, 4 Jan 2015 15:00:29 +0000 (UTC)
commit 215f389b733768527022108d49f5641af4674a2d
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 | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index 4427f21..83385a6 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -87,13 +87,11 @@ 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):
if not self.mark or self.mark.get_deleted():
- return False
+ return (False, None)
- iter.assign(self.mark.get_buffer().get_iter_at_mark(self.mark))
-
- return True
+ return (True, self.mark.get_buffer().get_iter_at_mark(self.mark))
def do_match(self, context):
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]