[gedit] Snippets: better way to show the completion
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Snippets: better way to show the completion
- Date: Sun, 10 Feb 2013 18:44:29 +0000 (UTC)
commit 87d75d52c64f3b22b2b367c6df54299aa6456cef
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Sun Feb 10 19:38:13 2013 +0100
Snippets: better way to show the completion
plugins/snippets/snippets/document.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index d3917b9..ccaf42d 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -150,7 +150,8 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
else:
# Do the fancy completion dialog
self.provider.set_proposals(snippets)
- self.view.emit("show-completion")
+ cm = self.view.get_completion()
+ cm.show([self.provider], cm.create_context(None))
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]