[gedit] Use get_activation new API instead of get_default
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Use get_activation new API instead of get_default
- Date: Sun, 4 Oct 2009 13:11:18 +0000 (UTC)
commit 0473517c1e73f6403a8a558e7c0bba495166c6b7
Author: Jesse van den Kieboom <jesse icecrew nl>
Date: Sun Oct 4 15:11:09 2009 +0200
Use get_activation new API instead of get_default
plugins/snippets/snippets/Completion.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/snippets/snippets/Completion.py b/plugins/snippets/snippets/Completion.py
index 8e45eaf..0731023 100644
--- a/plugins/snippets/snippets/Completion.py
+++ b/plugins/snippets/snippets/Completion.py
@@ -73,7 +73,7 @@ class Provider(gobject.GObject, gsv.CompletionProvider):
return self.mark.get_buffer().get_iter_at_mark(self.mark)
def do_match(self, context):
- return self.get_word(context) or context.get_default()
+ return self.get_word(context) or (context.get_activation() & gsv.COMPLETION_ACTIVATION_USER_REQUESTED)
def get_proposals(self, word):
if self.proposals:
@@ -93,7 +93,7 @@ class Provider(gobject.GObject, gsv.CompletionProvider):
def do_populate(self, context):
word = self.get_word(context)
- if word or context.get_default():
+ if word or (context.get_activation() & gsv.COMPLETION_ACTIVATION_USER_REQUESTED):
proposals = self.get_proposals(word)
else:
proposals = []
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]