[gedit/wip/snippets-debug-messages] snippets: debug messages
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/snippets-debug-messages] snippets: debug messages
- Date: Sun, 4 Jan 2015 11:58:16 +0000 (UTC)
commit 23c8098b4adb08da6b938883624bd7d9980a72b5
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Jan 4 12:50:51 2015 +0100
snippets: debug messages
https://bugzilla.gnome.org/show_bug.cgi?id=742015
plugins/snippets/snippets/completion.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index 774956a..8543d64 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -90,10 +90,13 @@ class Provider(GObject.Object, GtkSource.CompletionProvider):
return None
def do_get_start_iter(self, context, proposal, iter):
+ print("do_get_start_iter()");
if not self.mark or self.mark.get_deleted():
return False
+ print("assign iter");
iter.assign(self.mark.get_buffer().get_iter_at_mark(self.mark))
+ print("iter offset in snippets: %s" % iter.get_offset())
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]