[gedit-plugins] Fixed doc.gtk commander module for using dynamic snippets
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] Fixed doc.gtk commander module for using dynamic snippets
- Date: Sat, 3 Dec 2011 16:04:14 +0000 (UTC)
commit bb48bc734670b59aabded3a65166b07ae6f42d78
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sat Dec 3 17:03:25 2011 +0100
Fixed doc.gtk commander module for using dynamic 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 dd67741..b04cb42 100644
--- a/plugins/commander/modules/doc.py
+++ b/plugins/commander/modules/doc.py
@@ -90,7 +90,7 @@ class Documenter:
self.view = view
self.iter = iter
- bus = self.get_window().get_message_bus()
+ bus = self.window.get_message_bus()
self.canplaceholder = bus.is_registered('/plugins/snippets', 'parse-and-activate')
self.placeholder = 1
@@ -115,7 +115,7 @@ class Documenter:
def insert(self):
if self.canplaceholder:
bus = self.window.get_message_bus()
- bus.send('/plugins/snippets', 'parse-and-activate', trigger=self.text, iter=self.iter, view=self.view)
+ bus.send('/plugins/snippets', 'parse-and-activate', snippet=self.text, iter=self.iter, view=self.view)
def _make_documenter(window, view):
buf = view.get_buffer()
@@ -173,7 +173,7 @@ for it to work."""
doc.append("\n")
- doc.append(" * \n * ").append_placeholder("Description").append(".\n")
+ doc.append(" *\n * ").append_placeholder("Description").append(".\n")
if func.return_type:
sm = structp.match(func.return_type_name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]