[gedit-plugins] commander: add fixme of why we don't use snippets
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] commander: add fixme of why we don't use snippets
- Date: Fri, 30 Sep 2011 19:08:49 +0000 (UTC)
commit 8c6ff64bb64191932e25d1e8a0371c11e5ad3cc7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Sep 30 19:07:55 2011 +0200
commander: add fixme of why we don't use snippets
plugins/commander/modules/doc.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/commander/modules/doc.py b/plugins/commander/modules/doc.py
index 864f705..2a4fba8 100644
--- a/plugins/commander/modules/doc.py
+++ b/plugins/commander/modules/doc.py
@@ -91,8 +91,8 @@ class Documenter:
self.iter = iter
bus = self.get_window().get_message_bus()
- self.canplaceholder = (bus.lookup('/plugins/snippets', 'parse-and-activate').name != 'invalid')
-
+ self.canplaceholder = bus.is_registered('/plugins/snippets', 'parse-and-activate')
+ #FIXME: fix when we can set the iter
self.canplaceholder = False
self.placeholder = 1
@@ -117,7 +117,7 @@ class Documenter:
def insert(self):
if self.canplaceholder:
bus = self.window.get_message_bus()
- bus.send('/plugins/snippets', 'parse-and-activate', snippet=self.text, iter=self.iter, view=self.view)
+ bus.send('/plugins/snippets', 'parse-and-activate', trigger=self.text, iter=self.iter, view=self.view)
def _make_documenter(window, view):
buf = view.get_buffer()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]