[gedit-latex] tools: Fix execution of ToolView.



commit 0b1a163e477e40382dc1afae14b7c7d1756d83b3
Author: Josà Aliste <jaliste src gnome org>
Date:   Sat Sep 10 21:17:59 2011 -0300

    tools: Fix execution of ToolView.

 latex/tools/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/latex/tools/__init__.py b/latex/tools/__init__.py
index bd992d7..d9e5a9c 100644
--- a/latex/tools/__init__.py
+++ b/latex/tools/__init__.py
@@ -127,7 +127,7 @@ class ToolAction(Action):
             LOG.error("tool activate: no active editor")
 
     def run_tool(self, document, other, context, doc):
-        tool_view = context.find_view(None, "ToolView")
+        tool_view = context.find_view(context.active_editor, "ToolView")
 
         self._runner.run(context.active_editor.file, self._tool, tool_view)
         LOG.debug("run tool on: %s" % context.active_editor.file)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]